Skip to content

Commit

Permalink
Avoid blocking waiting for an event during shutdown (netdata#19244)
Browse files Browse the repository at this point in the history
  • Loading branch information
stelfrag authored Dec 18, 2024
1 parent 509af37 commit 93bf42c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/sqlite/sqlite_aclk.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ static void aclk_synchronization(void *arg)
uv_close((uv_handle_t *)&config->timer_req, NULL);

uv_close((uv_handle_t *)&config->async, NULL);
uv_run(loop, UV_RUN_DEFAULT);
uv_run(loop, UV_RUN_NOWAIT);

uv_walk(loop, (uv_walk_cb) close_callback, NULL);
uv_run(loop, UV_RUN_DEFAULT);
uv_run(loop, UV_RUN_NOWAIT);

(void) uv_loop_close(loop);

Expand Down

0 comments on commit 93bf42c

Please sign in to comment.