try and ensure database closes cleanly

This commit is contained in:
Blake Blackshear 2021-02-07 08:38:35 -06:00
parent 28af88b787
commit 3cd647d9cb

View File

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