From 379f5d0da3fde4129267366b64c03fef4e77d3c8 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 9 Apr 2024 11:51:47 -0400 Subject: [PATCH] Fix regression for background queue creation (Issue #934) --- scheduler/client.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scheduler/client.c b/scheduler/client.c index e7e312b8ef..bd38cc74b4 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -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()... */ -- 2.47.2