Skip to content

Real-time network monitor + outbound firewall — see & block every connection. Privacy-first, local-first, Rust fleet agent, SIEM exports, 8 languages. / Moniteur réseau temps réel + pare-feu sortant, agent de flotte Rust, exports SIEM. 100 % local.

Restore @asynccontextmanager on FastAPI lifespan

MoneyLisaaabb4117a99d
diff --git a/backend/api/main.py b/backend/api/main.py
index 8eec4f9..20fb82e 100644
--- a/backend/api/main.py
+++ b/backend/api/main.py
@@ -2165,6 +2165,9 @@ async def _shutdown_all() -> None:
chown_tree(data_dir())
except Exception:
pass
+
+
+@asynccontextmanager
async def lifespan(app: FastAPI):
"""EN: FastAPI lifespan — startup, yield, then clean shutdown.
FR: Lifespan FastAPI — démarrage, yield, puis arrêt propre."""