]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix regression for background queue creation (Issue #934)
authorMichael R Sweet <msweet@msweet.org>
Tue, 9 Apr 2024 15:51:47 +0000 (11:51 -0400)
committerMichael R Sweet <msweet@msweet.org>
Tue, 9 Apr 2024 15:51:47 +0000 (11:51 -0400)
scheduler/client.c

index e7e312b8ef1e5a237fee1f51db53e909c62d49d3..bd38cc74b4d7b7a6a6d4272c6f2fbccb800dddba 100644 (file)
@@ -425,6 +425,15 @@ cupsdCloseClient(cupsd_client_t *con)      /* I - Client to close */
     con->file = -1;
   }
 
+  if (con->bg_pending)
+  {
+   /*
+    * Don't close connection when there is a background thread pending
+    */
+
+    partial = 1;
+  }
+
  /*
   * Close the socket and clear the file from the input set for select()...
   */