1
0
Fork 0
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:
Andy Green 2020-07-08 19:20:03 +01:00
parent 6b639e6a81
commit 650a8781e9

View file

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