]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Change job state to IPP_JOB_HELD when job is restarted with appropriate job-held... 5971/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 27 Sep 2021 17:23:24 +0000 (13:23 -0400)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 27 Sep 2021 17:23:24 +0000 (13:23 -0400)
scheduler/ipp.c

index 7d51bc5b50c269bce4d39c9beee884a096a182b0..2e7e579171a9afb5e81c528264a64b335d551eba 100644 (file)
@@ -9372,11 +9372,10 @@ restart_job(cupsd_client_t  *con,       /* I - Client connection */
     cupsdLogJob(job, CUPSD_LOG_DEBUG,
                "Restarted by \"%s\" with job-hold-until=%s.",
                 username, attr->values[0].string.text);
-    cupsdSetJobHoldUntil(job, attr->values[0].string.text, 0);
-
-    cupsdAddEvent(CUPSD_EVENT_JOB_CONFIG_CHANGED | CUPSD_EVENT_JOB_STATE,
-                  NULL, job, "Job restarted by user with job-hold-until=%s",
-                 attr->values[0].string.text);
+    cupsdSetJobHoldUntil(job, attr->values[0].string.text, 1);
+    cupsdSetJobState(job, IPP_JOB_HELD, CUPSD_JOB_DEFAULT,
+                     "Job restarted by user with job-hold-until=%s",
+                     attr->values[0].string.text);
   }
   else
   {