mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: revert make ss timeout handle underlying wsi gone
This commit is contained in:
parent
3ef446f27c
commit
121dd5e8ee
1 changed files with 2 additions and 4 deletions
|
@ -1745,10 +1745,8 @@ lws_ss_to_cb(lws_sorted_usec_list_t *sul)
|
|||
if (r != LWSSSSRET_DISCONNECT_ME && r != LWSSSSRET_DESTROY_ME)
|
||||
return;
|
||||
|
||||
if (!h->wsi)
|
||||
return;
|
||||
|
||||
lws_set_timeout(h->wsi, 1, LWS_TO_KILL_ASYNC);
|
||||
if (h->wsi)
|
||||
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