From: Michael Tremer Date: Mon, 18 May 2026 17:00:27 +0000 (+0000) Subject: main: Don't try to shutdown the event loop if it does not exist X-Git-Tag: 0.0.1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d620137d3d24f65369805b49af69da99463d08cd;p=zone-sync.git main: Don't try to shutdown the event loop if it does not exist Signed-off-by: Michael Tremer --- diff --git a/main.c b/main.c index 32cd52f..52447a3 100644 --- a/main.c +++ b/main.c @@ -239,7 +239,8 @@ static void maybe_shutdown(void) { DEBUG("Shutting down...\n"); - isc_loopmgr_shutdown(ctx.loopmgr); + if (ctx.loopmgr) + isc_loopmgr_shutdown(ctx.loopmgr); } static void zone_done(dns_zone_t* z) {