diff options
Diffstat (limited to 'src/socketengine_epoll.cpp')
-rw-r--r-- | src/socketengine_epoll.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp index 163bd45c6..89be6cc41 100644 --- a/src/socketengine_epoll.cpp +++ b/src/socketengine_epoll.cpp @@ -87,7 +87,7 @@ bool EPollEngine::DelFd(EventHandler* eh) struct epoll_event ev; memset(&ev,0,sizeof(struct epoll_event)); - ref[fd]->Readable() ? ev.events = EPOLLIN : ev.events = EPOLLOUT; + eh->Readable() ? ev.events = EPOLLIN : ev.events = EPOLLOUT; ev.data.fd = fd; int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev); if (i < 0) |