Skip to content

Commit cd03a1d

Browse files
Merge pull request #935 from andreas-karlson/bugfix/fix-cupsd-new-printer-bug
scheduler: Fix potential bug when adding new printers (Issue #934)
2 parents dce85e1 + 6aeb03b commit cd03a1d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scheduler/client.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,14 @@ cupsdCloseClient(cupsd_client_t *con) /* I - Client to close */
430430
con->file = -1;
431431
}
432432

433+
if (con->bg_pending)
434+
{
435+
/*
436+
* Don't close connection when there is a background thread pending
437+
*/
438+
partial = 1;
439+
}
440+
433441
/*
434442
* Close the socket and clear the file from the input set for select()...
435443
*/

0 commit comments

Comments
 (0)