From: Carl Hetherington Date: Tue, 19 Nov 2019 23:08:09 +0000 (+0100) Subject: Don't announce job is finished until things have been torn down; may help with #1674. X-Git-Tag: v2.15.36~2 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=d156b28048786468be10ede5f79147f74ab1d83a Don't announce job is finished until things have been torn down; may help with #1674. --- diff --git a/src/lib/transcode_job.cc b/src/lib/transcode_job.cc index 55b4ef9b6..7fe28d210 100644 --- a/src/lib/transcode_job.cc +++ b/src/lib/transcode_job.cc @@ -88,8 +88,6 @@ TranscodeJob::run () DCPOMATIC_ASSERT (_encoder); _encoder->go (); - set_progress (1); - set_state (FINISHED_OK); struct timeval finish; gettimeofday (&finish, 0); @@ -113,6 +111,9 @@ TranscodeJob::run () _encoder.reset (); + set_progress (1); + set_state (FINISHED_OK); + } catch (...) { _encoder.reset (); throw;