diff options
| author | 2008-05-19 22:07:06 +0000 | |
|---|---|---|
| committer | 2008-05-19 22:07:06 +0000 | |
| commit | 5a24ea2be476c47ba8d09292375b6a6835c44611 (patch) | |
| tree | 12a2446c09eef12db4ab5eb85f24ade13cd211e6 /src/inspsocket.cpp | |
| parent | Fix to give the proper target ip on connect, cookies to w00t and Jason (diff) | |
Listening bufferedsockets dont have an OnRawSocketClose event as theyre never 'opened'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9773 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 95d119800..2fb811508 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -363,7 +363,8 @@ void BufferedSocket::Close() { try { - Instance->Config->GetIOHook(this)->OnRawSocketClose(this->fd); + if (this->state != I_LISTENING) + Instance->Config->GetIOHook(this)->OnRawSocketClose(this->fd); } catch (CoreException& modexcept) { |
