mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: client: clear timeout when connection acknowledged
This commit is contained in:
parent
6b639e6a81
commit
650a8781e9
1 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,8 @@ callback_sspc_client(struct lws *wsi, enum lws_callback_reasons reason,
|
|||
(lws_ss_handle_t **)m, &h->ssi, 1))
|
||||
return -1;
|
||||
|
||||
if (wsi && h->state == LPCS_LOCAL_CONNECTED)
|
||||
if (wsi && (h->state == LPCS_LOCAL_CONNECTED ||
|
||||
h->state == LPCS_ONWARD_CONNECT))
|
||||
lws_set_timeout(wsi, 0, 0);
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue