From c7c9f1119ee709a87585e2cbc8c8e1292c4db668 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 3 Oct 2007 15:40:23 +0000 Subject: Tweaks to icky icky select() engine (thanks Ersan) this MIGHT fix select problems, but nobody really uses it anyway. We've been having more than usual problems due to select() due to epoll not being detected properly and it falling back on select() which isnt as well tested. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8113 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine_select.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp index c70e609b5..3cebe7210 100644 --- a/src/socketengine_select.cpp +++ b/src/socketengine_select.cpp @@ -36,11 +36,10 @@ bool SelectEngine::AddFd(EventHandler* eh) if (GetRemainingFds() <= 1) return false; - fds[fd] = fd; - if (ref[fd]) return false; + fds[fd] = fd; ref[fd] = eh; CurrentSetSize++; -- cgit v1.2.3