Commit 9765a2ea authored by Deucе's avatar Deucе 👌🏾
Browse files

Fix poll()-based socket_check() implementation

Was returning disconnected when it wasn't at times.
parent 85dcf5e5
Pipeline #1598 passed with stage
in 9 minutes and 48 seconds
......@@ -366,9 +366,10 @@ BOOL socket_check(SOCKET sock, BOOL* rd_p, BOOL* wr_p, DWORD timeout)
if (j == -1) {
if (errno == EINTR || errno == ENOMEM)
return TRUE;
return FALSE;
}
return FALSE;
return TRUE;
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment