fix bogus notification on new clients

This commit is contained in:
Andreas Wrede
2026-04-10 13:39:18 -04:00
parent 2468386f24
commit 6217f7a124
2 changed files with 17 additions and 7 deletions
+7
View File
@@ -426,6 +426,13 @@ async def _run_async(config, config_path=None):
except Exception as e:
logger.warning("Error stopping DNS worker: %s", e)
# Save state (hosts + sessions) on clean shutdown
try:
save_state(config, hbdclass)
logger.info("State saved on shutdown")
except Exception as e:
logger.warning("Error saving state on shutdown: %s", e)
logger.info("All tasks cancelled")