X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspsocket.cpp;h=eb0ee86c82f524d8a5c48311f5847d055ed00ccf;hb=82243d9beb827fca5708efe9e047ff2fec4bfe8c;hp=fb9238a97333b92afa0891310081eb4d7fff7b18;hpb=74e622fbfa004b3c3363fc7bc83ae322c4eb3c5c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index fb9238a97..eb0ee86c8 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -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; } }