diff --git a/ArchiSteamFarm/MobileAuthenticator.cs b/ArchiSteamFarm/MobileAuthenticator.cs index 87b3d9cb8..b83231745 100644 --- a/ArchiSteamFarm/MobileAuthenticator.cs +++ b/ArchiSteamFarm/MobileAuthenticator.cs @@ -254,12 +254,20 @@ namespace ArchiSteamFarm { internal void Init(Bot bot) => Bot = bot ?? throw new ArgumentNullException(nameof(bot)); internal static async Task ResetSteamTimeDifference() { + if ((SteamTimeDifference == null) && (LastSteamTimeCheck == DateTime.MinValue)) { + return; + } + if (!await TimeSemaphore.WaitAsync(0).ConfigureAwait(false)) { // Resolve or reset is already in-progress return; } try { + if ((SteamTimeDifference == null) && (LastSteamTimeCheck == DateTime.MinValue)) { + return; + } + SteamTimeDifference = null; LastSteamTimeCheck = DateTime.MinValue; } finally {