1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

client_reset: don't reset protocol

This commit is contained in:
Andy Green 2019-09-17 10:13:00 +01:00
parent b2de3c98cc
commit bd8a751fc4

View file

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