summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-12 12:58:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-12 12:58:36 +0000
commitb5254e92e0690da29c1886e4afc1f16cd0f6428f (patch)
tree06f5a29da9bffed5c79f211c0c99cddae48908cf
parentd3f0dfdf9624b14685cad521d7bffc2da315450f (diff)
Fixed WRITEBIT support in select() engine
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2334 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/socketengine.cpp2
1 files changed, 1 insertions, 1 deletions
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<int> &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);
}