From 941e93ea33c63f43acd3a372fcf6e18a6b1a820b Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 21 Jul 2017 11:09:03 +0800 Subject: [PATCH] test-server-libuv: also call context_destroy2 when using foreign loop https://github.com/warmcat/libwebsockets/issues/972 --- test-server/test-server-libuv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test-server/test-server-libuv.c b/test-server/test-server-libuv.c index bf6c90a..df8a684 100644 --- a/test-server/test-server-libuv.c +++ b/test-server/test-server-libuv.c @@ -456,6 +456,9 @@ int main(int argc, char **argv) lwsl_notice("uv loop close rc %s\n", e ? uv_strerror(e) : "ok"); + /* PHASE 4: finalize context destruction */ + + lws_context_destroy2(context); } else #endif { -- 2.7.4