mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
immortal: allow ASYNC_KILL timeout even if immortal
This commit is contained in:
parent
38e43bb51e
commit
f01e2e1321
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs)
|
|||
if (secs == LWS_TO_KILL_ASYNC)
|
||||
secs = 0;
|
||||
|
||||
assert(!wsi->h2_stream_immortal);
|
||||
assert(!secs || !wsi->h2_stream_immortal);
|
||||
|
||||
lws_pt_lock(pt, __func__);
|
||||
__lws_set_timeout(wsi, reason, secs);
|
||||
|
|
Loading…
Add table
Reference in a new issue