diff options
Diffstat (limited to 'src/socketengine_epoll.cpp')
-rw-r--r-- | src/socketengine_epoll.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp index 7d35997c5..63b1fc10d 100644 --- a/src/socketengine_epoll.cpp +++ b/src/socketengine_epoll.cpp @@ -91,15 +91,15 @@ bool EPollEngine::DelFd(EventHandler* eh) ev.data.fd = fd; int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev); - CurrentSetSize--; - ref[fd] = NULL; - if (i < 0) { ServerInstance->Log(DEBUG,"epoll: List deletion failure: %s",strerror(errno)); return false; } + CurrentSetSize--; + ref[fd] = NULL; + return true; } |