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

fix accept nonzero as close from WRITEABLE callback

parent 78f266a5
Branches
Tags
No related merge requests found
...@@ -349,7 +349,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context, ...@@ -349,7 +349,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
if ((pollfd->revents & LWS_POLLOUT) && if ((pollfd->revents & LWS_POLLOUT) &&
wsi->state == WSI_STATE_ESTABLISHED && wsi->state == WSI_STATE_ESTABLISHED &&
lws_handle_POLLOUT_event(context, wsi, pollfd) < 0) { lws_handle_POLLOUT_event(context, wsi, pollfd)) {
lwsl_info("libwebsocket_service_fd: closing\n"); lwsl_info("libwebsocket_service_fd: closing\n");
goto close_and_handled; 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