client CONNECTION_ERROR also allow in LWSS_CLIENT_UNCONNECTED
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
e746a993d0
commit
f6f2dfc7fd
1 changed files with 3 additions and 1 deletions
|
@ -837,7 +837,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