1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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

errno == EISCONN)" doesn't work.
This commit is contained in:
shys 2013-10-25 15:49:11 +02:00 committed by Andy Green
parent 6b5c1af439
commit 5efcb3f7de

View file

@ -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");