diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-20 16:48:44 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-20 16:48:44 +0000 |
commit | 57bba0c632bf07cdce7810330dffdfa27ae14972 (patch) | |
tree | 76e3933845ab49250fe889306c6a394a705d54d5 /src/dnsqueue.cpp | |
parent | cd146649029d2d6d2a5edd804d2e6a31e13593bc (diff) |
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
Diffstat (limited to 'src/dnsqueue.cpp')
-rw-r--r-- | src/dnsqueue.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) |