mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 00:37:12 +02:00
bugfix: cannot stop detector if rxr crashed
This commit is contained in:
@ -411,10 +411,16 @@ void Module::stopAcquisition() {
|
|||||||
// get status before stopping acquisition
|
// get status before stopping acquisition
|
||||||
runStatus s = ERROR, r = ERROR;
|
runStatus s = ERROR, r = ERROR;
|
||||||
bool zmqstreaming = false;
|
bool zmqstreaming = false;
|
||||||
if (shm()->useReceiverFlag && getReceiverStreaming()) {
|
try {
|
||||||
zmqstreaming = true;
|
if (shm()->useReceiverFlag && getReceiverStreaming()) {
|
||||||
s = getRunStatus();
|
zmqstreaming = true;
|
||||||
r = getReceiverStatus();
|
s = getRunStatus();
|
||||||
|
r = getReceiverStatus();
|
||||||
|
}
|
||||||
|
} catch (...) {
|
||||||
|
// if receiver crashed, stop detector in any case
|
||||||
|
sendToDetectorStop(F_STOP_ACQUISITION);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
sendToDetectorStop(F_STOP_ACQUISITION);
|
sendToDetectorStop(F_STOP_ACQUISITION);
|
||||||
shm()->stoppedFlag = true;
|
shm()->stoppedFlag = true;
|
||||||
|
Reference in New Issue
Block a user