1
0
Fork 0
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:
Kristján Valur Jónsson 2019-10-28 12:43:03 +00:00 committed by Andy Green
parent 1485db1805
commit 16e31d4fd6

View file

@ -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);