This commit is contained in:
maliakal_d 2020-10-01 17:57:07 +02:00
parent f31260030b
commit a730a13cbe

View File

@ -419,11 +419,12 @@ void Module::stopAcquisition() {
} }
} catch (...) { } catch (...) {
// if receiver crashed, stop detector in any case // if receiver crashed, stop detector in any case
sendToDetectorStop(F_STOP_ACQUISITION); zmqstreaming = false;
return;
} }
sendToDetectorStop(F_STOP_ACQUISITION); sendToDetectorStop(F_STOP_ACQUISITION);
shm()->stoppedFlag = true; shm()->stoppedFlag = true;
// if rxr streaming and acquisition finished, restream dummy stop packet // if rxr streaming and acquisition finished, restream dummy stop packet
if (zmqstreaming && (s == IDLE) && (r == IDLE)) { if (zmqstreaming && (s == IDLE) && (r == IDLE)) {
restreamStopFromReceiver(); restreamStopFromReceiver();