Skip to content
Snippets Groups Projects
Commit 9765a2ea 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 85dcf5e5
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1598 passed
...@@ -366,9 +366,10 @@ BOOL socket_check(SOCKET sock, BOOL* rd_p, BOOL* wr_p, DWORD timeout) ...@@ -366,9 +366,10 @@ BOOL socket_check(SOCKET sock, BOOL* rd_p, BOOL* wr_p, DWORD timeout)
if (j == -1) { if (j == -1) {
if (errno == EINTR || errno == ENOMEM) if (errno == EINTR || errno == ENOMEM)
return TRUE; return TRUE;
return FALSE;
} }
return FALSE; return TRUE;
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment