]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix blocking divVerent/lhnet_tcp
authorRudolf Polzer <divverent@xonotic.org>
Tue, 13 Aug 2013 13:31:39 +0000 (15:31 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 13 Aug 2013 13:31:39 +0000 (15:31 +0200)
lhnet.c

diff --git a/lhnet.c b/lhnet.c
index c07e20420b4644160a63d5a0b6e0ae0d9894ea14..9eae3d1d47d3881c516ad6fcce425b44fe5bb9bb 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -1022,7 +1022,7 @@ lhnetsocket_t *LHNET_OpenSocket(lhnetaddress_t *address, lhnetaddress_t *peeradd
 #else
                                        char _true = 1;
 #endif
-                                       if (ioctlsocket(lhnetsocket->inetsocket, FIONBIO, use_blocking ? &_true : &_false) != -1)
+                                       if (ioctlsocket(lhnetsocket->inetsocket, FIONBIO, use_blocking ? &_false : &_true) != -1)
 #endif
                                        {
 #ifdef IPV6_V6ONLY