mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 05:47:14 +02:00
handling acquisition finished callback exception
This commit is contained in:
@ -599,9 +599,16 @@ void Implementation::stopReceiver() {
|
||||
LOG(logINFORED) << "Deactivated Receiver";
|
||||
}
|
||||
// callback
|
||||
if (acquisitionFinishedCallBack)
|
||||
acquisitionFinishedCallBack((tot / numThreads),
|
||||
pAcquisitionFinished);
|
||||
if (acquisitionFinishedCallBack) {
|
||||
try {
|
||||
acquisitionFinishedCallBack((tot / numThreads),
|
||||
pAcquisitionFinished);
|
||||
} catch (const std::exception &e) {
|
||||
throw sls::RuntimeError(
|
||||
"Acquisition Finished Callback Error: " +
|
||||
std::string(e.what()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// change status
|
||||
|
Reference in New Issue
Block a user