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 */
set_progress (1);
set_state (FINISHED_ERROR);
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
set_error (e.message(), e.detail().get_value_or(""));
set_progress (1);