Fix Uptime Kuma cannot be stopped

This commit is contained in:
Louis Lam 2022-12-08 19:13:47 +08:00
parent 2dff7dd380
commit e478084ff9
3 changed files with 10 additions and 1 deletions

View file

@ -158,6 +158,13 @@ class Settings {
delete Settings.cacheList[key];
}
}
static stopCacheCleaner() {
if (Settings.cacheCleaner) {
clearInterval(Settings.cacheCleaner);
Settings.cacheCleaner = null;
}
}
}
module.exports = {