try and ensure database closes cleanly

This commit is contained in:
Blake Blackshear 2021-02-07 08:38:35 -06:00
parent 165ca8fbc7
commit 01c3b4fa6e

View File

@ -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()