mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Fix typing
This commit is contained in:
parent
f4a943197b
commit
465f0e2be1
@ -157,7 +157,7 @@ class ObjectDetectProcess:
|
|||||||
self.detection_queue = detection_queue
|
self.detection_queue = detection_queue
|
||||||
self.avg_inference_speed = Value("d", 0.01)
|
self.avg_inference_speed = Value("d", 0.01)
|
||||||
self.detection_start = Value("d", 0.0)
|
self.detection_start = Value("d", 0.0)
|
||||||
self.detect_process = None
|
self.detect_process: util.Process | None = None
|
||||||
self.detector_config = detector_config
|
self.detector_config = detector_config
|
||||||
self.start_or_restart()
|
self.start_or_restart()
|
||||||
|
|
||||||
|
|||||||
@ -33,9 +33,9 @@ class FrigateWatchdog(threading.Thread):
|
|||||||
detector.start_or_restart()
|
detector.start_or_restart()
|
||||||
elif (
|
elif (
|
||||||
detector.detect_process is not None
|
detector.detect_process is not None
|
||||||
and not detector.detect_process.is_alive() # type: ignore[unreachable]
|
and not detector.detect_process.is_alive()
|
||||||
):
|
):
|
||||||
logger.info("Detection appears to have stopped. Exiting Frigate...") # type: ignore[unreachable]
|
logger.info("Detection appears to have stopped. Exiting Frigate...")
|
||||||
restart_frigate()
|
restart_frigate()
|
||||||
|
|
||||||
logger.info("Exiting watchdog...")
|
logger.info("Exiting watchdog...")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user