summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}