Fixed cleanup, error handling missing and missing gif

This commit is contained in:
Marcel Baumgartner
2023-06-17 12:57:01 +02:00
parent c2cb10f069
commit bc9fecf6d9
3 changed files with 91 additions and 89 deletions

View File

@@ -46,13 +46,11 @@ public class CleanupService
var config = ConfigService.GetSection("Moonlight").GetSection("Cleanup");
/*
* if (!config.GetValue<bool>("Enable") || ConfigService.DebugMode)
if (!config.GetValue<bool>("Enable") || ConfigService.DebugMode)
{
Logger.Info("Disabling cleanup service");
return;
}
*/
Timer = new(TimeSpan.FromMinutes(config.GetValue<int>("Wait")));