mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-31 11:06:35 +08:00 
			
		
		
		
	run autotracking setup method in asyncio coroutine (#19614)
This commit is contained in:
		| @@ -1329,7 +1329,11 @@ class PtzAutoTracker: | |||||||
|  |  | ||||||
|         if camera_config.onvif.autotracking.enabled: |         if camera_config.onvif.autotracking.enabled: | ||||||
|             if not self.autotracker_init[camera]: |             if not self.autotracker_init[camera]: | ||||||
|                 self._autotracker_setup(camera_config, camera) |                 future = asyncio.run_coroutine_threadsafe( | ||||||
|  |                     self._autotracker_setup(camera_config, camera), self.onvif.loop | ||||||
|  |                 ) | ||||||
|  |                 # Wait for the coroutine to complete | ||||||
|  |                 future.result() | ||||||
|  |  | ||||||
|             if self.calibrating[camera]: |             if self.calibrating[camera]: | ||||||
|                 logger.debug(f"{camera}: Calibrating camera") |                 logger.debug(f"{camera}: Calibrating camera") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Josh Hawkins
					Josh Hawkins