Fix resolver after /rehash with no "dns server" directives.
[ircu2.10.12-pk.git] / ircd / s_conf.c
index 18f4b00744275eb0935cd3c7cae3cc1cf85a4f61..1dc438b14591253982b44c46370664ae07fc4c83 100644 (file)
@@ -945,9 +945,6 @@ int rehash(struct Client *cptr, int sig)
 
   clear_quarantines();
 
-  if (sig != 2)
-    restart_resolver();
-
   class_mark_delete();
   mark_listeners_closing();
   auth_mark_closing();
@@ -955,6 +952,9 @@ int rehash(struct Client *cptr, int sig)
 
   read_configuration_file();
 
+  if (sig != 2)
+    restart_resolver();
+
   log_reopen(); /* reopen log files */
 
   auth_close_unused();