From c2609f6d7b0d04f97b3e3f6b789d678e32cb1a0b Mon Sep 17 00:00:00 2001 From: Jed Lu Date: Fri, 19 Jun 2020 18:25:56 +0100 Subject: [PATCH] ss: http: if not retrying move to idle state --- lib/secure-streams/protocols/ss-h1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/secure-streams/protocols/ss-h1.c b/lib/secure-streams/protocols/ss-h1.c index 50aca2ab6..a97c9f73b 100644 --- a/lib/secure-streams/protocols/ss-h1.c +++ b/lib/secure-streams/protocols/ss-h1.c @@ -206,6 +206,8 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user, if (h->policy && !(h->policy->flags & LWSSSPOLF_OPPORTUNISTIC) && !h->txn_ok && !wsi->context->being_destroyed) lws_ss_backoff(h); + else + h->seqstate = SSSEQ_IDLE; /* already disconnected, no action for DISCONNECT_ME */ if (lws_ss_event_helper(h, LWSSSCS_DISCONNECTED) == LWSSSSRET_DESTROY_ME)