fix: check if loop is running

This commit is contained in:
Mose Müller
2025-06-19 10:23:25 +02:00
parent 423441a74c
commit 80c5c4e99d

View File

@ -115,7 +115,7 @@ def setup_sio_server(
def sio_callback(
full_access_path: str, value: Any, cached_value_dict: SerializedObject
) -> None:
if cached_value_dict != {}:
if cached_value_dict != {} and loop.is_running():
async def notify() -> None:
try: