From 64eb4a51b6a62167f21c2a317167366853a021c4 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 18 May 2016 02:26:29 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Program.cs b/ArchiSteamFarm/Program.cs index bd67b6115..60cbe4139 100644 --- a/ArchiSteamFarm/Program.cs +++ b/ArchiSteamFarm/Program.cs @@ -85,7 +85,7 @@ namespace ArchiSteamFarm { private static EMode Mode = EMode.Normal; private static WebBrowser WebBrowser; - internal static async Task CheckForUpdate(bool updateOverride) { + internal static async Task CheckForUpdate(bool updateOverride = false) { string oldExeFile = ExecutableFile + ".old"; // We booted successfully so we can now remove old exe file @@ -163,7 +163,7 @@ namespace ArchiSteamFarm { Logging.LogGenericInfo("ASF will automatically check for new versions every 24 hours"); AutoUpdatesTimer = new Timer( - async e => await CheckForUpdate(false).ConfigureAwait(false), + async e => await CheckForUpdate().ConfigureAwait(false), null, TimeSpan.FromDays(1), // Delay TimeSpan.FromDays(1) // Period @@ -485,7 +485,7 @@ namespace ArchiSteamFarm { Exit(1); } - CheckForUpdate(false).Wait(); + CheckForUpdate().Wait(); // Before attempting to connect, initialize our list of CMs Bot.RefreshCMs(GlobalDatabase.CellID).Wait();