From 819d418bf2edf7c9d49a84225bdc709af217f4f3 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 6 Dec 2015 05:55:52 +0800 Subject: [PATCH] server socket service close when detected do right thing Signed-off-by: Andy Green --- lib/service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/service.c b/lib/service.c index 52154f49..4b4b8a66 100644 --- a/lib/service.c +++ b/lib/service.c @@ -492,8 +492,8 @@ 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) - goto close_and_handled; + if (n) /* closed by above */ + return 1; pending = lws_ssl_pending(wsi); if (pending) goto handle_pending;