]> git.proxmox.com Git - mirror_qemu.git/blobdiff - job.c
contrib: Add spaces around operator
[mirror_qemu.git] / job.c
diff --git a/job.c b/job.c
index 8fecf389609fe09c5f87d001ac7c83af5cde92d9..289edee143740c4598069d595125b67cc38d204e 100644 (file)
--- a/job.c
+++ b/job.c
@@ -553,6 +553,9 @@ static bool job_timer_not_pending(Job *job)
 void job_pause(Job *job)
 {
     job->pause_count++;
+    if (!job->paused) {
+        job_enter(job);
+    }
 }
 
 void job_resume(Job *job)
@@ -712,6 +715,9 @@ static int job_finalize_single(Job *job)
 
 static void job_cancel_async(Job *job, bool force)
 {
+    if (job->driver->cancel) {
+        job->driver->cancel(job);
+    }
     if (job->user_paused) {
         /* Do not call job_enter here, the caller will handle it.  */
         if (job->driver->user_resume) {