]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengine_epoll.cpp
Extra debugging
[user/henk/code/inspircd.git] / src / socketengine_epoll.cpp
index 9cc5f90f094da06fd523e4cf2403e6ed7c838299..7d35997c567acaec7a8750cf15d79e8705132056 100644 (file)
@@ -90,14 +90,16 @@ bool EPollEngine::DelFd(EventHandler* eh)
        eh->Readable() ? ev.events = EPOLLIN : ev.events = EPOLLOUT;
        ev.data.fd = fd;
        int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev);
+
+       CurrentSetSize--;
+       ref[fd] = NULL;
+
        if (i < 0)
        {
                ServerInstance->Log(DEBUG,"epoll: List deletion failure: %s",strerror(errno));
                return false;
        }
 
-       CurrentSetSize--;
-       ref[fd] = NULL;
        return true;
 }