test-server-libuv: also call context_destroy2 when using foreign loop
authorAndy Green <andy@warmcat.com>
Fri, 21 Jul 2017 03:09:03 +0000 (11:09 +0800)
committerAndy Green <andy@warmcat.com>
Fri, 21 Jul 2017 03:09:03 +0000 (11:09 +0800)
https://github.com/warmcat/libwebsockets/issues/972

test-server/test-server-libuv.c

index bf6c90a..df8a684 100644 (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
        {