mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
ss: make ss timeout handle underlying wsi gone
This commit is contained in:
parent
83cc495929
commit
e427e21cde
1 changed files with 4 additions and 2 deletions
|
@ -1381,8 +1381,10 @@ lws_ss_to_cb(lws_sorted_usec_list_t *sul)
|
|||
if (r != LWSSSSRET_DISCONNECT_ME && r != LWSSSSRET_DESTROY_ME)
|
||||
return;
|
||||
|
||||
if (h->wsi)
|
||||
lws_set_timeout(h->wsi, 1, LWS_TO_KILL_ASYNC);
|
||||
if (!h->wsi)
|
||||
return;
|
||||
|
||||
lws_set_timeout(h->wsi, 1, LWS_TO_KILL_ASYNC);
|
||||
|
||||
_lws_ss_handle_state_ret_CAN_DESTROY_HANDLE(r, h->wsi, &h);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue