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

fix client getting hung up on at negotiation

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2016-01-14 15:17:28 +08:00
parent 809d69aa85
commit 7c507e4700
2 changed files with 3 additions and 0 deletions

View file

@ -442,6 +442,7 @@ some_wait:
lws_latency(context, wsi, "send lws_issue_raw", n,
n == 1);
switch (n) {
case 0:
case LWS_SSL_CAPABLE_ERROR:
goto bail3;
case LWS_SSL_CAPABLE_MORE_SERVICE:

View file

@ -701,6 +701,8 @@ handle_pending:
break;
#else
n = lws_client_socket_service(context, wsi, pollfd);
if (n)
return 1;
goto handled;
#endif
}