mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
server socket service close when detected do right thing
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
d607bb9bfe
commit
819d418bf2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue