summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 22:07:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 22:07:06 +0000
commit5a24ea2be476c47ba8d09292375b6a6835c44611 (patch)
tree12a2446c09eef12db4ab5eb85f24ade13cd211e6 /src
parent819d0c523d8a7c4446b6d4050be0c4c0e80252eb (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')
-rw-r--r--src/inspsocket.cpp3
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)
{