From 04fed31eacf456d951e95e02c71ca86d31e91e7b Mon Sep 17 00:00:00 2001 From: blakeblackshear Date: Wed, 21 Aug 2019 20:06:11 -0500 Subject: [PATCH] increase watchdog timeout to 10 seconds --- frigate/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/video.py b/frigate/video.py index de991245d..5c4093958 100644 --- a/frigate/video.py +++ b/frigate/video.py @@ -73,8 +73,8 @@ class CameraWatchdog(threading.Thread): # wait a bit before checking time.sleep(10) - if (datetime.datetime.now().timestamp() - self.camera.frame_time.value) > 2: - print("last frame is more than 2 seconds old, restarting camera capture...") + if (datetime.datetime.now().timestamp() - self.camera.frame_time.value) > 10: + print("last frame is more than 10 seconds old, restarting camera capture...") self.camera.start_or_restart_capture() time.sleep(5)