allow cache cleanup thread to be stopped on shutdown

This commit is contained in:
Izalia Mae 2025-02-12 15:19:55 -05:00
parent ac0cddd65a
commit dec378fbfc

View file

@ -284,7 +284,7 @@ class CacheCleanupThread(Thread):
def run(self) -> None:
while self.running.is_set():
time.sleep(3600)
self.running.wait(3600)
logging.verbose("Removing old cache items")
self.app.cache.delete_old(14)