mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
sul: add clear advice for zombie suls
This commit is contained in:
parent
995a759184
commit
02f7e06776
1 changed files with 6 additions and 0 deletions
|
@ -146,6 +146,12 @@ __lws_sul_service_ripe(lws_dll2_owner_t *own, int own_len, lws_usec_t usnow)
|
|||
|
||||
/* his moment has come... remove him from his owning list */
|
||||
|
||||
if (!hit->cb) {
|
||||
lwsl_err("%s: sul with NULL callback (did not cancel on destory?)\n", __func__);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
lws_dll2_remove(&hit->list);
|
||||
hit->us = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue