]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Fix this so it works, passes test case. Provide a method to query for a bit and to...
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index f8d5109fb4ff3c67926410c5bf8a5341a52fa41f..5f5c2d6ec2d3701f6e2cf6244b6f99b97055d8da 100644 (file)
@@ -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())