client: use right state machine
https://github.com/warmcat/libwebsockets/issues/951
This commit is contained in:
parent
a637d8f41f
commit
e4d8acc85a
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,12 @@ lws_handshake_client(struct lws *wsi, unsigned char **buf, size_t len)
|
|||
return 0;
|
||||
}
|
||||
if (wsi->u.ws.rx_draining_ext) {
|
||||
m = lws_rx_sm(wsi, 0);
|
||||
#if !defined(LWS_NO_CLIENT)
|
||||
if (wsi->mode == LWSCM_WS_CLIENT)
|
||||
m = lws_client_rx_sm(wsi, 0);
|
||||
else
|
||||
#endif
|
||||
m = lws_rx_sm(wsi, 0);
|
||||
if (m < 0)
|
||||
return -1;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue