mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-18 00:16:41 +01:00
use timeout for move queues (#8662)
This commit is contained in:
parent
4879de263b
commit
678f1201c6
@ -589,7 +589,10 @@ class PtzAutoTracker:
|
||||
camera_config.frame_shape[0]
|
||||
|
||||
while not self.stop_event.is_set():
|
||||
move_data = self.move_queues[camera].get()
|
||||
try:
|
||||
move_data = self.move_queues[camera].get(True, 0.1)
|
||||
except queue.Empty:
|
||||
continue
|
||||
|
||||
with self.move_queue_locks[camera]:
|
||||
frame_time, pan, tilt, zoom = move_data
|
||||
|
Loading…
Reference in New Issue
Block a user