Skip to content

Commit

Permalink
Change job state to IPP_JOB_HELD when job is restarted with appropria…
Browse files Browse the repository at this point in the history
…te job-held-until attribute.
  • Loading branch information
AtariDreams committed Sep 27, 2021
1 parent 41203cb commit 34db020
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scheduler/ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 34db020

Please sign in to comment.