]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/job.c
Merge changes from CUPS 1.4svn-r8329.
[thirdparty/cups.git] / scheduler / job.c
index daf082a36ebd8eda7ae3c7fc3a9dd7125f7f01fc..752de5e5ef33ea3476d3680b2be140881c6a489d 100644 (file)
@@ -633,6 +633,14 @@ cupsdFinishJob(cupsd_job_t *job)   /* I - Job */
 
   cupsdSetPrinterReasons(printer, "-connecting-to-device");
 
+ /*
+  * Similarly, clear the "offline-report" reason for non-USB devices since we
+  * rarely have current information for network devices...
+  */
+
+  if (strncmp(printer->device_uri, "usb:", 4))
+    cupsdSetPrinterReasons(printer, "-offline-report");
+
   if (job->status < 0)
   {
    /*