From f01e2e1321bf0dc21dab280949ba7cd5a5601528 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 5 Nov 2019 20:34:29 +0000 Subject: [PATCH] immortal: allow ASYNC_KILL timeout even if immortal --- lib/core-net/wsi-timeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core-net/wsi-timeout.c b/lib/core-net/wsi-timeout.c index f5a37a882..5b882ba41 100644 --- a/lib/core-net/wsi-timeout.c +++ b/lib/core-net/wsi-timeout.c @@ -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);