Skip to content

Commit dec586b

Browse files
committed
pr_print_filter_function(): Do not shut down CUPS backend at end of input data
As we now do check of device status and ink/toner levels before and after each job we cannot already close the CUPS backend by when the pr_print_filter_function() detects that the complete job data has been passed on. So we remove this functionality from pr_print_filter_function(). We shut down the CUPS backend anyway when the job ends, after the call to update the device status.
1 parent 07d7602 commit dec586b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pappl-retrofit/print-job.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,15 +1498,6 @@ pr_print_filter_function(int inputfd, // I - File descriptor input
14981498
}
14991499
papplDeviceFlush(device);
15001500

1501-
// Stop the CUPS backend if we are using one
1502-
if (strncmp(device_uri, "cups:", 5) == 0)
1503-
{
1504-
if (log)
1505-
log(ld, CF_LOGLEVEL_DEBUG,
1506-
"Backend: Output data stream ended, shutting down CUPS backend");
1507-
pr_cups_dev_stop_backend(device);
1508-
}
1509-
15101501
if (debug_fd >= 0)
15111502
close(debug_fd);
15121503

0 commit comments

Comments
 (0)