]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Add interesting test case
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index 95d11980008a84e0ea8c44669a86693791b7ef43..2fb811508b7608810b8d835454e055fbca873acd 100644 (file)
@@ -363,7 +363,8 @@ void BufferedSocket::Close()
                {
                        try
                        {
-                               Instance->Config->GetIOHook(this)->OnRawSocketClose(this->fd);
+                               if (this->state != I_LISTENING)
+                                       Instance->Config->GetIOHook(this)->OnRawSocketClose(this->fd);
                        }
                        catch (CoreException& modexcept)
                        {