summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-31 19:19:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-31 19:19:41 +0000
commitb2e0b72bb671c2dd18f7b1a1ea52dc0ec556e398 (patch)
treeaf91ac110dceeb2ddc0b9e2598333e629c3ba41e /src
parent6a6f5b2275b1bfc0ab1e2b1393ec1df2fa734c86 (diff)
Fix whoopsies
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6194 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dns.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 66c0d8085..5d830d0de 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -257,6 +257,8 @@ void DNS::Rehash()
if (this->GetFd() > -1)
{
+ if (ServerInstance && ServerInstance->SE)
+ ServerInstance->SE->DelFd(this);
shutdown(this->GetFd(), 2);
close(this->GetFd());
this->SetFd(-1);