]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update the hold expiration logging - one case is an error, the other is normal (Issue...
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 1 May 2019 18:58:28 +0000 (14:58 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 1 May 2019 18:58:28 +0000 (14:58 -0400)
scheduler/job.c

index 17001936f9c66f433a675340671e66a338ceadf1..cd49a0fbc04df3cff0edb098963cd2ca14555559 100644 (file)
@@ -307,10 +307,12 @@ cupsdCheckJobs(void)
 
         if (cupsdTimeoutJob(job))
          continue;
-      }
 
-      cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job submission timed out.");
-      cupsdLogJob(job, CUPSD_LOG_ERROR, "Job submission timed out.");
+       cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job submission timed out.");
+       cupsdLogJob(job, CUPSD_LOG_ERROR, "Job submission timed out.");
+      }
+      else
+       cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job hold expired.");
     }
 
    /*