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

close actually close after send close ack

parent 974bed41
Branches
Tags
No related merge requests found
......@@ -512,6 +512,8 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
wsi->state == WSI_STATE_RETURNED_CLOSE_ALREADY ||
wsi->state == WSI_STATE_FLUSHING_STORED_SEND_BEFORE_CLOSE) &&
lws_handle_POLLOUT_event(context, wsi, pollfd)) {
if (wsi->state == WSI_STATE_RETURNED_CLOSE_ALREADY)
wsi->state = WSI_STATE_FLUSHING_STORED_SEND_BEFORE_CLOSE;
lwsl_info("libwebsocket_service_fd: closing\n");
goto close_and_handled;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment