Skip to content

Commit

Permalink
Config writing tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Sep 24, 2024
1 parent 28daaf9 commit 0db49af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,12 @@ private static void Timer_Elapsed(object? sender, System.Timers.ElapsedEventArgs
return;
}

Thread.Sleep(1000);
Thread.Sleep(500);

var backupText = File.ReadAllText(backup);

if (backupText.Contains("{") && backupText.Contains("}"))
{
//Logger.WriteLine("Config written");
File.Copy(backup, configFile, true);
}
else
Expand Down

0 comments on commit 0db49af

Please sign in to comment.