diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-31 20:36:38 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-31 20:36:38 +0000 |
commit | 84fe55db1605dbb5907c1a5cb149302f17717a10 (patch) | |
tree | 33542ae8bad741e995a87c886a5fcff8c952dd66 /src | |
parent | 193b540aa750446bf67dcad132773541214c296d (diff) |
Close an inspsocket on getting error state
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5608 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspsocket.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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()) |