summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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++;