summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 3a676d29b6..955bb0a9b2 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -1226,6 +1226,9 @@ BOOL print_queue_purge(struct current_user *user, int snum, int *errcode)
int njobs, i;
BOOL can_job_admin;
+ /* Force and update so the count is accurate (i.e. not a cached count) */
+ print_queue_update(snum);
+
can_job_admin = print_access_check(user, snum, JOB_ACCESS_ADMINISTER);
njobs = print_queue_status(snum, &queue, &status);
@@ -1237,7 +1240,6 @@ BOOL print_queue_purge(struct current_user *user, int snum, int *errcode)
}
}
- print_queue_update(snum);
safe_free(queue);
/* Send a printer notify message */