Skip to content
Snippets Groups Projects
Commit 5b2567c5 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix poll()-based socket_check() implementation

Was returning disconnected when it wasn't at times.
parent 0a7d25fe
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment