mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
Improve restart timing (#10709)
This commit is contained in:
parent
d5989c91a8
commit
559e6910c4
@ -666,6 +666,11 @@ class FrigateApp:
|
||||
logger.info("Stopping...")
|
||||
self.stop_event.set()
|
||||
|
||||
# Stop Communicators
|
||||
self.inter_process_communicator.stop()
|
||||
self.inter_config_updater.stop()
|
||||
self.inter_detection_proxy.stop()
|
||||
|
||||
for detector in self.detectors.values():
|
||||
detector.stop()
|
||||
|
||||
@ -702,8 +707,3 @@ class FrigateApp:
|
||||
queue.get_nowait()
|
||||
queue.close()
|
||||
queue.join_thread()
|
||||
|
||||
# Stop Communicators
|
||||
self.inter_process_communicator.stop()
|
||||
self.inter_config_updater.stop()
|
||||
self.inter_detection_proxy.stop()
|
||||
|
@ -79,7 +79,7 @@ def output_frames(
|
||||
websocket_thread.start()
|
||||
|
||||
while not stop_event.is_set():
|
||||
(topic, data) = detection_subscriber.get_data(timeout=10)
|
||||
(topic, data) = detection_subscriber.get_data(timeout=1)
|
||||
|
||||
if not topic:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user