]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/job.c
The scheduler incorrectly aborted jobs after a job was restarted
[thirdparty/cups.git] / scheduler / job.c
index 0d81570d5c40b2260094d6245a0b6550ec6bf2de..35e3cdeb25e9da6e78e8143266841373807aff56 100644 (file)
@@ -4738,7 +4738,7 @@ stop_job(cupsd_job_t       *job,  /* I - Job */
   FilterLevel -= job->cost;
   job->cost   = 0;
 
-  if (action == CUPSD_JOB_DEFAULT && !job->kill_time)
+  if (action == CUPSD_JOB_DEFAULT && !job->kill_time && job->backend > 0)
     job->kill_time = time(NULL) + JobKillDelay;
   else if (action >= CUPSD_JOB_FORCE)
     job->kill_time = 0;