1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

server socket service close fix fail detect

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2015-12-05 21:52:16 +08:00
parent dd6aaa898f
commit f012c4423c

View file

@ -496,7 +496,7 @@ lws_service_fd(struct lws_context *context, struct lws_pollfd *pollfd)
case LWS_CONNMODE_SERVER_LISTENER:
case LWS_CONNMODE_SSL_ACK_PENDING:
n = lws_server_socket_service(context, wsi, pollfd);
if (n < 0)
if (n)
goto close_and_handled;
pending = lws_ssl_pending(wsi);
if (pending)