Skip to content
Snippets Groups Projects
Commit 499954a0 authored by Andy Green's avatar Andy Green
Browse files

client CONNECTION_ERROR also allow in LWSS_CLIENT_UNCONNECTED


Signed-off-by: default avatarAndy Green <andy@warmcat.com>
parent e4ea29bd
Branches
Tags
No related merge requests found
......@@ -868,7 +868,9 @@ bail3:
close_reason = LWS_CLOSE_STATUS_NOSTATUS;
bail2:
if (wsi->protocol && wsi->state == LWSS_ESTABLISHED) {
if (wsi->protocol &&
(wsi->state == LWSS_ESTABLISHED ||
wsi->state == LWSS_CLIENT_UNCONNECTED)) {
if (isErrorCodeReceived && p) {
wsi->protocol->callback(wsi,
LWS_CALLBACK_CLIENT_CONNECTION_ERROR,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment