Message ID | 68da830d390658684c0b5688c4c91858c8ea3930.1534444235.git.jcody@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block: for jobs, do not clear user_paused until after the resume | expand |
diff --git a/job.c b/job.c index fa671b431a..e36ebaafd8 100644 --- a/job.c +++ b/job.c @@ -732,10 +732,10 @@ static void job_cancel_async(Job *job, bool force) { if (job->user_paused) { /* Do not call job_enter here, the caller will handle it. */ - job->user_paused = false; if (job->driver->user_resume) { job->driver->user_resume(job); } + job->user_paused = false; assert(job->pause_count > 0); job->pause_count--; }