Skip to main content
Sign in
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
No related branches found
No related tags found
No related merge requests found
...@@ -93,9 +93,12 @@ struct libwebsocket *__libwebsocket_client_connect_2( ...@@ -93,9 +93,12 @@ struct libwebsocket *__libwebsocket_client_connect_2(
return wsi; return wsi;
} }
if (errno != EISCONN) {
lwsl_debug("Connect failed errno=%d\n", errno); lwsl_debug("Connect failed errno=%d\n", errno);
goto failed; goto failed;
} }
}
lwsl_client("connected\n"); lwsl_client("connected\n");
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment