diff options
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 7718fe70a..3635b9b84 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -291,8 +291,9 @@ void BufferedSocket::Close() } } ServerInstance->SE->Shutdown(this, 2); - if (ServerInstance->SE->Close(this) != -1) - this->OnClose(); + ServerInstance->SE->DelFd(this, false); + ServerInstance->SE->Close(this); + this->OnClose(); if (ServerInstance->SocketCull.find(this) == ServerInstance->SocketCull.end()) ServerInstance->SocketCull[this] = this; |
