pot/merge.
[dcpomatic.git] / src / lib / checker.cc
index c32462b42b57c8bd9c4da0e448e950adb8e6f4ed..b96b965aab2efc3ced2bafbc6eed596ad11e67c0 100644 (file)
@@ -43,19 +43,17 @@ Checker::run ()
 
 Checker::~Checker ()
 {
+       boost::this_thread::disable_interruption dis;
+
        {
                boost::mutex::scoped_lock lm (_mutex);
                _terminate = true;
        }
 
-       if (_thread.joinable()) {
-               _thread.interrupt ();
-               try {
-                       _thread.join ();
-               } catch (...) {
-
-               }
-       }
+       _thread.interrupt ();
+       try {
+               _thread.join ();
+       } catch (...) {}
 }
 
 void