Recover subtitle language metadata from the places is was written
[dcpomatic.git] / src / lib / job.cc
index 0feda64355fd95cc0e2d18472c7305cd94b6ec86..d960dfaee99f0da96f329cc82a2b97082556f51d 100644 (file)
@@ -71,16 +71,12 @@ Job::~Job ()
 void
 Job::stop_thread ()
 {
-       if (!_thread.joinable()) {
-               return;
-       }
+       boost::this_thread::disable_interruption dis;
 
        _thread.interrupt ();
        try {
                _thread.join ();
-       } catch (...) {
-               /* Too late to do anything about this */
-       }
+       } catch (...) {}
 }
 
 /** Start the job in a separate thread, returning immediately */