]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/job.c
Fix potential excess logging from the scheduler when removing job files
[thirdparty/cups.git] / scheduler / job.c
index 89b1c28c58b7600d6d69c994c7204d1db1470441..2cfb1b03db27d3d89947c7e882fbbc9fd2b5bd47 100644 (file)
@@ -462,7 +462,7 @@ cupsdCleanJobs(void)
         cupsdLogJob(job, CUPSD_LOG_DEBUG, "Removing from history.");
        cupsdDeleteJob(job, CUPSD_JOB_PURGE);
       }
-      else if (job->file_time && job->file_time <= curtime)
+      else if (job->file_time && job->file_time <= curtime && job->num_files > 0)
       {
         cupsdLogJob(job, CUPSD_LOG_DEBUG, "Removing document files.");
         remove_job_files(job);