From: Michael Tremer Date: Mon, 18 May 2026 16:40:44 +0000 (+0000) Subject: main: Decrement the counter of running zones again X-Git-Tag: 0.0.1~16 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e6b93606636a2bec986b300bc1e91d61c587860f;p=zone-sync.git main: Decrement the counter of running zones again Signed-off-by: Michael Tremer --- diff --git a/main.c b/main.c index e4f1ff1..c4e98ea 100644 --- a/main.c +++ b/main.c @@ -226,10 +226,13 @@ static void maybe_shutdown(void) { static void zone_done(dns_zone_t* zone) { // Release the zone from the manager - dns_zonemgr_releasezone(ctx.zonemgr, zone); + dns_zonemgr_releasezone(ctx.zonemgr, zone); // Free the zone - dns_zone_detach(&zone); + dns_zone_detach(&zone); + + // Decrement the number of running zones + ctx.running--; // Terminate if we are all done maybe_shutdown();