summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-07 14:47:46 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-09 13:44:55 +0100
commitc54068e8dfbd8d1d1f4b4e91d03274e2b25a4626 (patch)
tree1ba6423dd16b0724745fe8b418b829c1311b71a8 /src/lib
parente3d43932d63b68dd007d2ee467778ec31917e01f (diff)
Fix crash with no Film.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/job.cc6
1 files changed, 3 insertions, 3 deletions
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;