summaryrefslogtreecommitdiff
path: root/scheduler/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'scheduler/job.c')
-rw-r--r--scheduler/job.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scheduler/job.c b/scheduler/job.c
index 927dd949e..af81c235f 100644
--- a/scheduler/job.c
+++ b/scheduler/job.c
@@ -447,7 +447,7 @@ cupsdCheckJobs(void)
cupsdCancelJob(job, 1, IPP_JOB_ABORTED);
}
- else if (printer)
+ else if (printer && !printer->holding_new_jobs)
{
/*
* See if the printer is available or remote and not printing a job;
@@ -473,7 +473,7 @@ cupsdCheckJobs(void)
}
if ((!(printer->type & CUPS_PRINTER_DISCOVERED) && /* Printer is local */
- printer->state == IPP_PRINTER_IDLE) || /* and idle */
+ printer->state == IPP_PRINTER_IDLE) || /* and idle, OR */
((printer->type & CUPS_PRINTER_DISCOVERED) && /* Printer is remote */
!printer->job)) /* and not printing */
{