]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't mark BG thread done until the response is sent.
authorMichael R Sweet <msweet@msweet.org>
Wed, 10 Apr 2024 18:09:42 +0000 (14:09 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 10 Apr 2024 18:09:42 +0000 (14:09 -0400)
scheduler/ipp.c

index 798a8044c17e3e1cd70f2c4f251292724b89e796..b80692f9fa448c283f6973a0c16682a9b897b254 100644 (file)
@@ -5513,10 +5513,10 @@ create_local_bg_thread(
 
   ippDelete(response);
 
-  con->bg_pending = 0;
-
   send_response(con);
 
+  con->bg_pending = 0;
+
   return (NULL);
 }