diff --git a/frigate/http.py b/frigate/http.py index da64e9ef8..75e00b26c 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -47,7 +47,8 @@ def create_app( @app.before_request def _db_connect(): - database.connect() + if database.is_closed(): + database.connect() @app.teardown_request def _db_close(exc):