From cc905e149d29a5471bf3dd0b2eb353b3d17e77d4 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 09:24:21 +0000 Subject: Changed a broken && to & which was preventing epoll from doing outbound connects properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2390 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3