mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fix accept nonzero as close from WRITEABLE callback
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
78f266a525
commit
8e18fe3a94
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
|
||||
if ((pollfd->revents & LWS_POLLOUT) &&
|
||||
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");
|
||||
goto close_and_handled;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue