diff options
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index d1dc1ce6b..fb9238a97 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -356,6 +356,8 @@ bool InspSocket::FlushWriteBuffer() this->Instance->Log(DEBUG,"Write error on socket: %s",strerror(errno)); this->OnError(I_ERR_WRITE); this->state = I_ERROR; + ServerInstance->SE->DelFd(this->sock); + this->sock->Close(); return true; } } |