From bd8a751fc47f5df5c1f44573fcdd684da32655ce Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 17 Sep 2019 10:13:00 +0100 Subject: [PATCH] client_reset: don't reset protocol --- lib/roles/http/client/client-handshake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/http/client/client-handshake.c b/lib/roles/http/client/client-handshake.c index 53498ec9d..cc13a8a18 100644 --- a/lib/roles/http/client/client-handshake.c +++ b/lib/roles/http/client/client-handshake.c @@ -849,7 +849,7 @@ lws_client_reset(struct lws **pwsi, int ssl, const char *address, int port, wsi->desc.sockfd = LWS_SOCK_INVALID; lwsi_set_state(wsi, LRS_UNCONNECTED); - wsi->protocol = NULL; + // wsi->protocol = NULL; wsi->pending_timeout = NO_PENDING_TIMEOUT; wsi->c_port = port; wsi->hdr_parsing_completed = 0;