Browse Source

try and ensure database closes cleanly

Blake Blackshear 4 years ago
parent
commit
01c3b4fa6e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frigate/app.py

+ 1 - 0
frigate/app.py

@@ -252,6 +252,7 @@ class FrigateApp():
         self.recording_maintainer.join()
         self.recording_maintainer.join()
         self.stats_emitter.join()
         self.stats_emitter.join()
         self.frigate_watchdog.join()
         self.frigate_watchdog.join()
+        self.db.stop()
 
 
         for detector in self.detectors.values():
         for detector in self.detectors.values():
             detector.stop()
             detector.stop()