diff options
author | John Stebbins <[email protected]> | 2019-03-09 12:59:35 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-03-09 12:59:35 -0700 |
commit | f0448eb50ab5026ee38048a770b210f574cb1cf5 (patch) | |
tree | a5385983a0dfd0846126d05b4eb126bd04d2a3de | |
parent | a05c54f3e3112a11b5326810a3e6e4bd4366c56c (diff) |
fix setting sequence_id of final job status
current_job can't be NULL'd till after the status is set because the job
contains the current sequence_id
-rw-r--r-- | libhb/work.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/work.c b/libhb/work.c index 7c3542501..3d3b3c730 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -152,9 +152,9 @@ static void work_func( void * _work ) *(work->current_job) = job; InitWorkState(job->h, job->pass_id, pass + 1, pass_count); do_job( job ); - *(work->current_job) = NULL; } SetWorkStateInfo(job); + *(work->current_job) = NULL; // Clean job passes for (pass = 0; pass < pass_count; pass++) |