diff options
Diffstat (limited to 'src/socketengine_kqueue.cpp')
-rw-r--r-- | src/socketengine_kqueue.cpp | 3 |
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) { |