1
0
Fork 0
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:
Andy Green 2019-11-05 20:34:29 +00:00
parent 38e43bb51e
commit f01e2e1321

View file

@ -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);