mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
valgrind context destroy close all conns properly
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
4708a02f06
commit
7b92205086
1 changed files with 2 additions and 1 deletions
|
@ -1050,7 +1050,8 @@ libwebsocket_context_destroy(struct libwebsocket_context *context)
|
||||||
for (n = 0; n < context->fds_count; n++) {
|
for (n = 0; n < context->fds_count; n++) {
|
||||||
struct libwebsocket *wsi = context->lws_lookup[context->fds[n].fd];
|
struct libwebsocket *wsi = context->lws_lookup[context->fds[n].fd];
|
||||||
libwebsocket_close_and_free_session(context,
|
libwebsocket_close_and_free_session(context,
|
||||||
wsi, LWS_CLOSE_STATUS_GOINGAWAY);
|
wsi, LWS_CLOSE_STATUS_NOSTATUS /* no protocol close */);
|
||||||
|
n--;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue