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