From b2e0b72bb671c2dd18f7b1a1ea52dc0ec556e398 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 31 Dec 2006 19:19:41 +0000 Subject: [PATCH] Fix whoopsies git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6194 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2