summaryrefslogtreecommitdiff
path: root/src/socketengine_select.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketengine_select.cpp')
-rw-r--r--src/socketengine_select.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp
index f36c96379..a57da4a31 100644
--- a/src/socketengine_select.cpp
+++ b/src/socketengine_select.cpp
@@ -50,6 +50,9 @@ bool SelectEngine::AddFd(int fd, bool readable, char type)
fds[fd] = fd;
+ if (ref[fd])
+ return false;
+
ref[fd] = type;
if (readable)
{