]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Only enable and accept jobs for temporary queues once IPP Everywhere PPD is created...
authorMichael R Sweet <msweet@msweet.org>
Thu, 17 Apr 2025 19:29:03 +0000 (15:29 -0400)
committerMichael R Sweet <msweet@msweet.org>
Thu, 17 Apr 2025 19:29:03 +0000 (15:29 -0400)
scheduler/ipp.c

index 0708fb85dbe51dd53cda826e0b8e609d4054eccc..a53f38cbe046ab6f254bfbca087bfb04f955bbdc 100644 (file)
@@ -5319,8 +5319,12 @@ create_local_bg_thread(
       cupsRWLockWrite(&printer->lock);
 
       printer->config_time = time(NULL);
-      printer->state       = IPP_PSTATE_IDLE;
-      printer->accepting   = 1;
+
+      if (printer->temporary)
+      {
+       printer->state     = IPP_PSTATE_IDLE;
+       printer->accepting = 1;
+      }
 
       cupsRWUnlock(&printer->lock);