diff options
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r-- | src/socketengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index ff4e4c6f3..82e79ece3 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -120,7 +120,7 @@ bool SocketEngine::DelFd(int fd) } #ifdef USE_KQUEUE struct kevent ke; - EV_SET(&ke, fd, ref[fd] && X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); + EV_SET(&ke, fd, ref[fd] & X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL); if (i == -1) { |