summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-03 15:40:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-03 15:40:23 +0000
commitc7c9f1119ee709a87585e2cbc8c8e1292c4db668 (patch)
tree61485ff108102f7664ed6147a674ee6b47b2fbc7 /src
parent71a2531a9ed6cb0efd1bb133dd08447e6517576d (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/socketengine_select.cpp3
1 files changed, 1 insertions, 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++;