summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-12 12:44:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-12 12:44:43 +0000
commit280f52aeae72a3383e1e10b2f2a5952e7b1413b7 (patch)
treef2be3394b53fe6bb4fac93d5b74e2b839698d61c /src/inspircd.cpp
parentb81c2e4c4eda2c7ae6fa5fbccfe40c94852fdf3b (diff)
*EXPERIMENTAL* Tied DNS into new socket engine
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2331 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp7
1 files changed, 3 insertions, 4 deletions
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)
{