DetectorWrapper: Ignore exceptions of Detector:stopDetector()
(cherry picked from commit 2e63e50858)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user