From 280f52aeae72a3383e1e10b2f2a5952e7b1413b7 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 12:44:43 +0000 Subject: *EXPERIMENTAL* Tied DNS into new socket engine git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2331 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 76c091cac..5a9493b0c 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2656,10 +2656,6 @@ int InspIRCd(char** argv, int argc) OLDTIME = TIME; TIME = time(NULL); -#ifndef THREADED_DNS - dns_poll(); -#endif - // *FIX* Instead of closing sockets in kill_link when they receive the ERROR :blah line, we should queue // them in a list, then reap the list every second or so. if (((TIME % 5) == 0) && (!expire_run)) @@ -2713,6 +2709,9 @@ int InspIRCd(char** argv, int argc) else if (SE->GetType(activefds[activefd]) == X_ESTAB_DNS) { log(DEBUG,"Got a ready socket of type X_ESTAB_DNS"); +#ifndef THREADED_DNS + dns_poll(); +#endif } else if (SE->GetType(activefds[activefd]) == X_LISTEN) { -- cgit v1.3.1-10-gc9f91