From b5254e92e0690da29c1886e4afc1f16cd0f6428f Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 12:58:36 +0000 Subject: Fixed WRITEBIT support in select() engine git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2334 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socketengine.cpp b/src/socketengine.cpp index f19a8d082..f4f149eed 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -132,7 +132,7 @@ bool SocketEngine::Wait(std::vector &fdlist) int sresult; for (unsigned int a = 0; a < fds.size(); a++) { - if (ref[fds[a]] && X_READBIT) + if (ref[fds[a]] & X_READBIT) { FD_SET (fds[a], &rfdset); } -- cgit v1.2.3