From: Carl Hetherington Date: Wed, 7 Oct 2015 13:47:46 +0000 (+0100) Subject: Fix crash with no Film. X-Git-Tag: v2.4.6~41 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=c54068e8dfbd8d1d1f4b4e91d03274e2b25a4626 Fix crash with no Film. --- diff --git a/src/lib/job.cc b/src/lib/job.cc index 91581eb49..42d6160c7 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -322,12 +322,12 @@ Job::error_summary () const void Job::set_error (string s, string d) { - LOG_ERROR_NC (s); - LOG_ERROR_NC (d); - if (_film) { + LOG_ERROR_NC (s); + LOG_ERROR_NC (d); _film->log()->log (String::compose ("Error in job: %1 (%2)", s, d), Log::TYPE_ERROR); } + boost::mutex::scoped_lock lm (_state_mutex); _error_summary = s; _error_details = d;