]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Tidy up strlens which are not required
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index fb9238a97333b92afa0891310081eb4d7fff7b18..eb0ee86c82f524d8a5c48311f5847d055ed00ccf 100644 (file)
@@ -356,8 +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();
+                               this->Instance->SE->DelFd(this);
+                               this->Close();
                                return true;
                        }
                }