From 16274c16972143acb652a19926b43de7afcbc5db Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 5 May 2025 20:47:24 -0500 Subject: [PATCH] more debug --- frigate/ptz/onvif.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index 752122dc8..9e676fce3 100644 --- a/frigate/ptz/onvif.py +++ b/frigate/ptz/onvif.py @@ -580,6 +580,12 @@ class OnvifController: ) -> None: """Handle ONVIF commands asynchronously""" # logger.debug(f"handling async: {camera_name}, {command}, {param}") + current_loop = asyncio.get_running_loop() + expected_loop = self.loop + if current_loop is not expected_loop: + logger.error( + f"Wrong event loop in _move! Expected {expected_loop}, got {current_loop}" + ) if camera_name not in self.cams.keys(): logger.error(f"ONVIF is not configured for {camera_name}") return