X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspsocket.cpp;h=2fb811508b7608810b8d835454e055fbca873acd;hb=b87565e3441f25be17d35dac86f68661a7ec3bbd;hp=95d11980008a84e0ea8c44669a86693791b7ef43;hpb=86c2b7abf7f8627c9f765b12ec334d1541dcfb61;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 95d119800..2fb811508 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -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) {