test-server-libuv: also call context_destroy2 when using foreign loop

https://github.com/warmcat/libwebsockets/issues/972
This commit is contained in:
Andy Green 2017-07-21 11:09:03 +08:00
parent c9da1ffa2e
commit 941e93ea33

View file

@ -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
{