]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix whoopsies
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 31 Dec 2006 19:19:41 +0000 (19:19 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 31 Dec 2006 19:19:41 +0000 (19:19 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6194 e03df62e-2008-0410-955e-edbf42e46eb7

src/dns.cpp

index 66c0d8085ed7e7a0708c680f6073035414e61ee7..5d830d0de0418fd0282e5f3fd10bd8760a68e502 100644 (file)
@@ -257,6 +257,8 @@ void DNS::Rehash()
 
        if (this->GetFd() > -1)
        {
 
        if (this->GetFd() > -1)
        {
+               if (ServerInstance && ServerInstance->SE)
+                       ServerInstance->SE->DelFd(this);
                shutdown(this->GetFd(), 2);
                close(this->GetFd());
                this->SetFd(-1);
                shutdown(this->GetFd(), 2);
                close(this->GetFd());
                this->SetFd(-1);