diff options
Diffstat (limited to 'src/socketengine_epoll.cpp')
-rw-r--r-- | src/socketengine_epoll.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp index d1a761d5b..4afee1374 100644 --- a/src/socketengine_epoll.cpp +++ b/src/socketengine_epoll.cpp @@ -55,7 +55,11 @@ bool EPollEngine::AddFd(int fd, bool readable, char type) log(DEFAULT,"ERROR: System out of file descriptors!"); return false; } + if (ref[fd]) + return false; + ref[fd] = type; + if (readable) { log(DEBUG,"Set readbit"); |