summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);