From 57bba0c632bf07cdce7810330dffdfa27ae14972 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 20 Jul 2006 16:48:44 +0000 Subject: Make threaded dns stable by placing some mutexes around some stl stuff (this really needs lots of testing now) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4460 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dnsqueue.cpp') diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index a3a558823..35dc1bba1 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -239,6 +239,7 @@ bool lookup_dns(const std::string &nick) void ZapThisDns(int fd) { +#ifndef THREADED_DNS if ((fd < 0) || (fd > MAX_DESCRIPTORS)) return; @@ -258,6 +259,7 @@ void ZapThisDns(int fd) dns_close(x->resolver2.GetFD()); } } +#endif } void dns_poll(int fdcheck) -- cgit v1.2.3