summaryrefslogtreecommitdiff
path: root/src/socketengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r--src/socketengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp
index 9d54e8b66..af2f1b169 100644
--- a/src/socketengine.cpp
+++ b/src/socketengine.cpp
@@ -188,7 +188,7 @@ int SocketEngine::Blocking(int fd)
return ioctlsocket(fd, FIONBIO, &opt);
#else
int flags = fcntl(fd, F_GETFL, 0);
- return fcntl(fd, F_SETFL, flags ^ O_NONBLOCK);
+ return fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
#endif
}