mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-30 01:40:04 +02:00
bugfix: cannot stop detector if rxr crashed
This commit is contained in:
parent
e5c98150e4
commit
f31260030b
@ -411,11 +411,17 @@ 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;
|
||||||
|
try {
|
||||||
if (shm()->useReceiverFlag && getReceiverStreaming()) {
|
if (shm()->useReceiverFlag && getReceiverStreaming()) {
|
||||||
zmqstreaming = true;
|
zmqstreaming = true;
|
||||||
s = getRunStatus();
|
s = getRunStatus();
|
||||||
r = getReceiverStatus();
|
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;
|
||||||
// if rxr streaming and acquisition finished, restream dummy stop packet
|
// if rxr streaming and acquisition finished, restream dummy stop packet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user