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

Check for writability on non-blocking connect(), not read

parent 4ba1e56f
No related branches found
No related tags found
No related merge requests found
......@@ -506,7 +506,7 @@ int conn_socket_connect(struct bbslist *bbs)
case EWOULDBLOCK:
#endif
for(;sock!=INVALID_SOCKET;) {
if (socket_readable(sock, 1000)) {
if (socket_writable(sock, 1000)) {
if (socket_recvdone(sock, 0)) {
closesocket(sock);
sock=INVALID_SOCKET;
......
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