From 00fdbcaa5b710652e8c30ece62b315639e62fdc8 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Fri, 10 Jul 2026 15:39:42 -0400 Subject: [PATCH] fix: skip journal scheduling when the event loop is not running Co-Authored-By: Claude Fable 5 --- hbd/server/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbd/server/notify.py b/hbd/server/notify.py index 98ebfb1..e53aa1c 100644 --- a/hbd/server/notify.py +++ b/hbd/server/notify.py @@ -139,7 +139,7 @@ def eventlog(host, lvl, m, service=None): def _journal_event(msg: dict): """Schedule an async write of *msg* to the events journal (no-op without a loop).""" - if _loop is None: + if _loop is None or not _loop.is_running(): return from . import journal as journal_mod ej = journal_mod.get_events_journal()