Skip to content

Commit

Permalink
scheduler: Set reasons in 'cupsdSetJobState' only if we call finalize…
Browse files Browse the repository at this point in the history
…_job() later
  • Loading branch information
zdohnal committed Nov 24, 2023
1 parent 5a4011c commit 1d60308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/job.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1d60308

Please sign in to comment.