From f8295ecb5775db57f9fd533a48010b5ffbf34197 Mon Sep 17 00:00:00 2001 From: George Zhao Date: Sat, 27 May 2023 11:50:15 +0800 Subject: [PATCH] fixup --- src/luv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/luv.c b/src/luv.c index 7049cd09..ad596faf 100644 --- a/src/luv.c +++ b/src/luv.c @@ -805,10 +805,8 @@ static int loop_gc(lua_State *L) { uv_loop_t* loop = ctx->loop; if (loop==NULL) return 0; - // Call uv_close on every active handle - uv_walk(loop, walk_cb, loop); - + uv_walk(loop, walk_cb, NULL); // Run the event loop until all handles are successfully closed while (uv_loop_close(loop)) { uv_run(loop, UV_RUN_DEFAULT);