summaryrefslogtreecommitdiff
path: root/source3/printing/load.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-10 11:55:14 -0700
committerJeremy Allison <jra@samba.org>2008-10-10 11:55:14 -0700
commiteada8f8abe6e4b770b7a2e279fc897a4272b6fa5 (patch)
tree2cb91cd91cb12005b25b531e9ed821f153f2a916 /source3/printing/load.c
parent5b75aa34069d488d23e880393d4280cbe85cc5c6 (diff)
downloadsamba-eada8f8abe6e4b770b7a2e279fc897a4272b6fa5.tar.gz
samba-eada8f8abe6e4b770b7a2e279fc897a4272b6fa5.tar.bz2
samba-eada8f8abe6e4b770b7a2e279fc897a4272b6fa5.zip
If you have a large number of cups printers, then scanning for print info can cause a client to timeout
(it takes longer than 30 seconds to enumerate them). Make scanning for printers async with a callback from the main loop. This fixes a bug that was irritating *me* :-). Jeremy.
Diffstat (limited to 'source3/printing/load.c')
-rw-r--r--source3/printing/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/load.c b/source3/printing/load.c
index 23144d5a95..fc21f271bd 100644
--- a/source3/printing/load.c
+++ b/source3/printing/load.c
@@ -60,5 +60,5 @@ void load_printers(void)
/* load all printcap printers */
if (lp_load_printers() && lp_servicenumber(PRINTERS_NAME) >= 0)
- pcap_printer_fn(lp_add_one_printer);
+ pcap_printer_fn(lp_add_one_printer, NULL);
}