Improvement in regards to #1513

This commit is contained in:
JustArchi
2019-11-20 19:58:51 +01:00
parent 22dcaba788
commit fe2091c71a

View File

@@ -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()