]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Only output the 'AES on' message if the socket state isnt I_ERROR when its reached
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index d1dc1ce6bb783b45bd8f6c0ece5c5e6ee13d406d..eb0ee86c82f524d8a5c48311f5847d055ed00ccf 100644 (file)
@@ -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;
+                               this->Instance->SE->DelFd(this);
+                               this->Close();
                                return true;
                        }
                }