]> 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 9b691fc7f068920e2566ece4a2043ffa70f3a2fe..5f5c2d6ec2d3701f6e2cf6244b6f99b97055d8da 100644 (file)
@@ -475,10 +475,16 @@ InspSocket::~InspSocket()
        this->Close();
 }
 
-void InspSocket::HandleEvent(EventType et)
+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())
                        {