mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: Fix ioctl result check polarity
This commit is contained in:
parent
1485db1805
commit
16e31d4fd6
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ lws_plat_set_nonblocking(int fd)
|
|||
{
|
||||
u_long optl = 1;
|
||||
int result = !!ioctlsocket(fd, FIONBIO, &optl);
|
||||
if (!result)
|
||||
if (result)
|
||||
{
|
||||
int error = LWS_ERRNO;
|
||||
lwsl_err("ioctlsocket FIONBIO 1 failed with error %d\n", error);
|
||||
|
|
Loading…
Add table
Reference in a new issue