diff options
| author | 2008-05-19 22:10:46 +0000 | |
|---|---|---|
| committer | 2008-05-19 22:10:46 +0000 | |
| commit | e30a2f19527514446af316cbb599c9fe8a96aacd (patch) | |
| tree | bd737bcb3bcd6642e200d2ac57b53b7bc9fa3ff9 /src/inspsocket.cpp | |
| parent | Add a note in here to tell the user when host resolution is disabled, so that... (diff) | |
Backport r9773, fixes bug #534 reported by irefuse. Listening sockets cannot have a close hook.
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9774 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 2397f4444..904739375 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -360,7 +360,8 @@ void InspSocket::Close() { try { - Instance->Config->GetIOHook(this)->OnRawSocketClose(this->fd); + if (this->state != I_LISTENING) + Instance->Config->GetIOHook(this)->OnRawSocketClose(this->fd); } catch (CoreException& modexcept) { |
