From: Zdenek Dohnal Date: Fri, 24 Nov 2023 06:19:20 +0000 (+0100) Subject: scheduler: Set reasons in 'cupsdSetJobState' only if we call finalize_job() later X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d6030856c94a9a01452e4036450be57bf49a1ff;p=thirdparty%2Fcups.git scheduler: Set reasons in 'cupsdSetJobState' only if we call finalize_job() later --- diff --git a/scheduler/job.c b/scheduler/job.c index 6efbaf85e5..9aadb6d516 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -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; }