diff options
Diffstat (limited to 'src/lib/job.cc')
| -rw-r--r-- | src/lib/job.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/job.cc b/src/lib/job.cc index 0feda6435..d960dfaee 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -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 */ |
