From 605295bc1b8975f478abe5170f1766c040db446e Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 19 Jul 2023 14:04:54 -0600 Subject: [PATCH] Add max on timeout so it is at least 60 --- frigate/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/app.py b/frigate/app.py index 5abf954d8..8739030fb 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -313,7 +313,7 @@ class FrigateApp: "cache_size": -512 * 1000, # 512MB of cache, "synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous }, - timeout=10 * len([c for c in self.config.cameras.values() if c.enabled]), + timeout=max(60, 10 * len([c for c in self.config.cameras.values() if c.enabled])), ) models = [Event, Recordings, Timeline] self.db.bind(models)