Skip to content

Commit 0142eeb

Browse files
committed
Expire per-printer subscriptions before deleting.
1 parent c3037ea commit 0142eeb

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Changes in CUPS v2.4.17 (YYYY-MM-DD)
3535
- Fixed a crash bug in the rastertoepson filter.
3636
- Fixed the range check for job password strings.
3737
- Fixed a bug in cgiCheckVariables.
38+
- Fixed a printer subscription bug in the scheduler.
3839

3940

4041
Changes in CUPS v2.4.16 (2025-12-04)

scheduler/printers.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,12 @@ cupsdDeletePrinter(
644644
update ? "Job stopped due to printer being deleted." :
645645
"Job stopped.");
646646

647+
/*
648+
* Expire subscriptions on the printer...
649+
*/
650+
651+
cupsdExpireSubscriptions(p, /*job*/NULL);
652+
647653
/*
648654
* Remove the printer from the list...
649655
*/

0 commit comments

Comments
 (0)