From: Michael R Sweet Date: Tue, 9 Apr 2024 15:51:47 +0000 (-0400) Subject: Fix regression for background queue creation (Issue #934) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=379f5d0da3fde4129267366b64c03fef4e77d3c8;p=thirdparty%2Fcups.git Fix regression for background queue creation (Issue #934) --- 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()... */