diff --git a/detector_control/DetectorWrapper.cpp b/detector_control/DetectorWrapper.cpp index 0adfcd4b..82d3766e 100644 --- a/detector_control/DetectorWrapper.cpp +++ b/detector_control/DetectorWrapper.cpp @@ -134,7 +134,10 @@ void DetectorWrapper::InternalStop() { throw JFJochException(JFJochExceptionCategory::Detector, "Detector in error state"); else if (state == DetectorState::BUSY) { - det.stopDetector(); + try { + // Sometimes stop gives problem - ignore these + det.stopDetector(); + } catch (...) {} std::this_thread::sleep_for(std::chrono::milliseconds(10)); state = GetState(); if (state != DetectorState::IDLE)