Commit 1b587cd1 authored by afreyssin's avatar afreyssin
Browse files

Bug fix (JORAM-229): avoid ClassCastException during close if daemon is already stopped.

parent c3399f29
...@@ -444,8 +444,9 @@ public class AcquisitionModule implements ReliableTransmitter { ...@@ -444,8 +444,9 @@ public class AcquisitionModule implements ReliableTransmitter {
* Closes the handler. * Closes the handler.
*/ */
public void close() { public void close() {
if (isDaemon && running) { if (isDaemon) {
((AcquisitionDaemon) acquisitionHandler).stop(); if (running)
((AcquisitionDaemon) acquisitionHandler).stop();
running = false; running = false;
} else { } else {
if (acquisitionTask != null) { if (acquisitionTask != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment