From 5a24ea2be476c47ba8d09292375b6a6835c44611 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 19 May 2008 22:07:06 +0000 Subject: 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 --- src/inspsocket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inspsocket.cpp') 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) { -- cgit v1.3.1-10-gc9f91