From 729a503e80e5a9ad47478debcd6fbd54b587cffe Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 13 Aug 2013 15:31:39 +0200 Subject: [PATCH] fix blocking --- lhnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lhnet.c b/lhnet.c index c07e2042..9eae3d1d 100644 --- 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 -- 2.39.2