From 34db0206c14d6b000c54ab48eccb11cb31feff5f Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Mon, 27 Sep 2021 13:23:24 -0400 Subject: Change job state to IPP_JOB_HELD when job is restarted with appropriate job-held-until attribute. --- scheduler/ipp.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scheduler/ipp.c b/scheduler/ipp.c index 7d51bc5b5..2e7e57917 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -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 { -- cgit v1.2.1