Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed May 27, 2023
1 parent d78df64 commit f8295ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/luv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f8295ec

Please sign in to comment.