From 84fe55db1605dbb5907c1a5cb149302f17717a10 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 31 Oct 2006 20:36:38 +0000 Subject: Close an inspsocket on getting error state git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5608 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index f8d5109fb..5f5c2d6ec 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -480,6 +480,10 @@ void InspSocket::HandleEvent(EventType et, int errornum) switch (et) { case EVENT_ERROR: + this->Instance->SE->DelFd(this); + this->Close(); + delete this; + return; break; case EVENT_READ: if (!this->Poll()) -- cgit v1.2.3