Skip to content
Snippets Groups Projects
Commit 5efcb3f7 authored by shys's avatar shys Committed by Andy Green
Browse files

Subject: [PATCH] Additional check for EISONN. On iOS "if (connect()) == -1 ||

 errno == EISCONN)" doesn't work.
parent 6b5c1af4
Branches
Tags
No related merge requests found
......@@ -93,8 +93,11 @@ struct libwebsocket *__libwebsocket_client_connect_2(
return wsi;
}
lwsl_debug("Connect failed errno=%d\n", errno);
goto failed;
if (errno != EISCONN) {
lwsl_debug("Connect failed errno=%d\n", errno);
goto failed;
}
}
lwsl_client("connected\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment