From fe2091c71aa3c195b40385418c7d8b73f143d120 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 20 Nov 2019 19:58:51 +0100 Subject: [PATCH] Improvement in regards to #1513 --- ArchiSteamFarm/Bot.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index eaf17412e..27c5a7a23 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -2075,12 +2075,6 @@ namespace ArchiSteamFarm { case EResult.InvalidPassword when string.IsNullOrEmpty(BotDatabase.LoginKey): // Do not attempt to reconnect, those failures are permanent return; - case EResult.Invalid: - // Invalid means that we didn't get OnLoggedOn() in the first place, so Steam is down - // Always reset one-time-only access tokens in this case, as OnLoggedOn() didn't do that for us - AuthCode = TwoFactorCode = null; - - break; case EResult.InvalidPassword: BotDatabase.LoginKey = null; ArchiLogger.LogGenericInfo(Strings.BotRemovedExpiredLoginKey); @@ -2355,7 +2349,7 @@ namespace ArchiSteamFarm { return; } - // Always reset one-time-only access tokens + // Always reset one-time-only access tokens when we get OnLoggedOn() response AuthCode = TwoFactorCode = null; // Keep LastLogOnResult for OnDisconnected()