Revert "Revert "s3-printing: reload shares after pcap cache fill""
[samba.git] / source3 / printing / load.c
index 874f7f25215560a5717905baed1f5810fea4e208..00da9cb2921d350bc2ec9b24fe68ec3a96978d3e 100644 (file)
@@ -53,12 +53,11 @@ static void add_auto_printers(void)
 }
 
 /***************************************************************************
-load automatic printer services
+load automatic printer services from pre-populated pcap cache
 ***************************************************************************/
 void load_printers(void)
 {
-       if (!pcap_cache_loaded())
-               pcap_cache_reload();
+       SMB_ASSERT(pcap_cache_loaded());
 
        add_auto_printers();