]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
scheduler/ipp.c: Change job state to IPP_JOB_HELD when job is restarted with appropri...
authorBryan Mason <bmason@redhat.com>
Thu, 16 Sep 2021 00:59:22 +0000 (17:59 -0700)
committerBryan Mason <bmason@redhat.com>
Thu, 16 Sep 2021 00:59:22 +0000 (17:59 -0700)
scheduler/ipp.c

index dd5172c668b6745594585d8d65c20676f24b079f..f95e84453af309c6e4f71c467ccca2afd1f07973 100644 (file)
@@ -9374,6 +9374,9 @@ restart_job(cupsd_client_t  *con, /* I - Client connection */
                "Restarted by \"%s\" with job-hold-until=%s.",
                 username, attr->values[0].string.text);
     cupsdSetJobHoldUntil(job, attr->values[0].string.text, 0);
+    cupsdSetJobState(job, IPP_JOB_HELD, CUPSD_JOB_DEFAULT,
+                    "Job restarted by user with job-hold-until=%s",
+                    attr->values[0].string.text);
 
     cupsdAddEvent(CUPSD_EVENT_JOB_CONFIG_CHANGED | CUPSD_EVENT_JOB_STATE,
                   NULL, job, "Job restarted by user with job-hold-until=%s",