]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
scheduler: Set reasons in 'cupsdSetJobState' only if we call finalize_job() later 832/head
authorZdenek Dohnal <zdohnal@redhat.com>
Fri, 24 Nov 2023 06:19:20 +0000 (07:19 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Fri, 24 Nov 2023 06:19:20 +0000 (07:19 +0100)
scheduler/job.c

index 6efbaf85e5be5eac20091bf176bec9be4bbd2b0a..9aadb6d5165ae7ea3430a627aaf817807b83067a 100644 (file)
@@ -2600,7 +2600,7 @@ cupsdSetJobState(
        * reasons message there...
        */
 
-       if (action > CUPSD_JOB_DEFAULT || !job || !job->printer)
+       if (action >= CUPSD_JOB_FORCE && job && job->printer)
          ippSetString(job->attrs, &job->reasons, 0, "processing-to-stop-point");
        break;
   }