client CONNECTION_ERROR also allow in LWSS_CLIENT_UNCONNECTED
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
e4ea29bd51
commit
499954a096
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue