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:
parent
6b5c1af439
commit
5efcb3f7de
1 changed files with 5 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue