From: Andy Green Date: Fri, 21 Jul 2017 03:09:03 +0000 (+0800) Subject: test-server-libuv: also call context_destroy2 when using foreign loop X-Git-Tag: accepted/tizen/4.0/unified/20171012.191640~31 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Flibwebsockets.git;a=commitdiff_plain;h=941e93ea33c63f43acd3a372fcf6e18a6b1a820b test-server-libuv: also call context_destroy2 when using foreign loop https://github.com/warmcat/libwebsockets/issues/972 --- 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 {