close path: make sure a second time timeout and ssl buffered lists are scrubbed
lws_meta children can have a different close path
This commit is contained in:
parent
e6bd6296bd
commit
16ef37ef5d
1 changed files with 5 additions and 0 deletions
|
@ -101,6 +101,11 @@ lws_free_wsi(struct lws *wsi)
|
|||
}
|
||||
lws_pt_unlock(pt);
|
||||
|
||||
/* since we will destroy the wsi, make absolutely sure now */
|
||||
|
||||
lws_ssl_remove_wsi_from_buffered_list(wsi);
|
||||
lws_remove_from_timeout_list(wsi);
|
||||
|
||||
wsi->context->count_wsi_allocated--;
|
||||
lwsl_debug("%s: %p, remaining wsi %d\n", __func__, wsi,
|
||||
wsi->context->count_wsi_allocated);
|
||||
|
|
Loading…
Add table
Reference in a new issue