summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRose <83477269+AtariDreams@users.noreply.github.com>2021-09-27 13:23:24 -0400
committerRose <83477269+AtariDreams@users.noreply.github.com>2021-09-27 13:23:24 -0400
commit34db0206c14d6b000c54ab48eccb11cb31feff5f (patch)
tree9b3b8333c9664431aec211d51d4d3dbd17986b26
parent41203cbdb391d93264880ddc83b537730b5f9abf (diff)
downloadcups-34db0206c14d6b000c54ab48eccb11cb31feff5f.tar.gz
Change job state to IPP_JOB_HELD when job is restarted with appropriate job-held-until attribute.
-rw-r--r--scheduler/ipp.c9
1 files 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
{