summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}
}