diff options
Diffstat (limited to 'source3/printing/pcap.c')
-rw-r--r-- | source3/printing/pcap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index 2e544b7cdc..3bc8e9e4e2 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -121,6 +121,12 @@ void pcap_cache_reload(struct tevent_context *ev, return; } + if (!printer_list_need_refresh()) { + /* has been just refeshed, skip */ + DEBUG(5, ("Refresh just happend, skipping.\n")); + return; + } + status = printer_list_mark_reload(); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("Failed to mark printer list for reload!\n")); |