diff options
| author | 2007-07-18 18:03:21 +0000 | |
|---|---|---|
| committer | 2007-07-18 18:03:21 +0000 | |
| commit | b2f7888b7ac0e72041ceea7dd9e7e6d4c46dcb5c (patch) | |
| tree | 55e44acfb730dfa98eec9bba25ced101ec329659 /src/inspsocket.cpp | |
| parent | Fixed m_messageflood to free the channel if it kicks the last user. This woul... (diff) | |
Ive tidied up the mode count stuff, but i still cant duplicate negative invisible counts. :(
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7474 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index f29366c73..ecf7e0b24 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -356,9 +356,9 @@ void InspSocket::Close() Instance->Log(DEFAULT,"%s threw an exception: %s", modexcept.GetSource(), modexcept.GetReason()); } } - this->OnClose(); shutdown(this->fd,2); - close(this->fd); + if (close(this->fd) != -1) + this->OnClose(); if (Instance->SocketCull.find(this) == Instance->SocketCull.end()) Instance->SocketCull[this] = this; |
