Skip to content

Commit

Permalink
Fix yet another service crash caused by a missing CurrentConfig.xml
Browse files Browse the repository at this point in the history
This is getting a bit out of hand, don't you think?
  • Loading branch information
Sparronator9999 committed Oct 7, 2024
1 parent 62c2aeb commit 0175945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions YAMDCC.Service/FanControlService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,18 +298,18 @@ private void LoadConf()
{
if (ex is InvalidConfigException or InvalidOperationException)
{
ConfigLoaded = false;
Log.Error(Strings.GetString("cfgInvalid"));
}
else if (ex is FileNotFoundException)
{
Log.Warn(Strings.GetString("cfgNotFound"));
ConfigLoaded = false;
}
else
{
throw;
}
ConfigLoaded = false;
return;
}

if (Config.Template)
Expand Down

0 comments on commit 0175945

Please sign in to comment.