also callback closed if flushing
This commit is contained in:
parent
8721f4f5f1
commit
b944cc1248
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,8 @@ just_kill_connection:
|
|||
if (wsi->protocol && wsi->protocol->callback &&
|
||||
((old_state == WSI_STATE_ESTABLISHED) ||
|
||||
(old_state == WSI_STATE_RETURNED_CLOSE_ALREADY) ||
|
||||
(old_state == WSI_STATE_AWAITING_CLOSE_ACK))) {
|
||||
(old_state == WSI_STATE_AWAITING_CLOSE_ACK) ||
|
||||
(old_state == WSI_STATE_FLUSHING_STORED_SEND_BEFORE_CLOSE))) {
|
||||
lwsl_debug("calling back CLOSED\n");
|
||||
wsi->protocol->callback(context, wsi, LWS_CALLBACK_CLOSED,
|
||||
wsi->user_space, NULL, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue