From: Jeroen van der Heijden Date: Fri, 24 Jan 2020 13:07:56 +0000 (+0100) Subject: Update for test X-Git-Tag: archive/raspbian/2.0.44-1+rpi1~1^2~3^2~5^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=777998a27823a69d8f2903f29e5635e42cd77bbd;p=siridb-server.git Update for test --- diff --git a/src/siri/siri.c b/src/siri/siri.c index 60bb1e26..ac611239 100644 --- a/src/siri/siri.c +++ b/src/siri/siri.c @@ -334,8 +334,11 @@ static void SIRI_destroy(void) /* stop the event loop */ uv_stop(siri.loop); + LOGC("STOP"); + /* use one iteration to close all open handlers */ SIRI_close_handlers(); + LOGC("CLOSE"); } static void SIRI_set_running_state(void) @@ -559,5 +562,5 @@ static void SIRI_close_handlers(void) uv_walk(siri.loop, SIRI_walk_close_handlers, NULL); /* run the loop once more so call-backs on uv_close() can run */ - uv_run(siri.loop, UV_RUN_DEFAULT); + uv_run(siri.loop, UV_RUN_ONCE); }