forked from Github/frigate
use timeout for move queues (#8662)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user