mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-14 00:47:25 +00:00
Fix login limiter not working properly when Steam is entirely down
This commit is contained in:
parent
f0256597ff
commit
ab9792bc6d
1 changed files with 5 additions and 0 deletions
|
@ -1886,6 +1886,11 @@ namespace ArchiSteamFarm {
|
|||
}
|
||||
|
||||
switch (lastLogOnResult) {
|
||||
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:
|
||||
// If we didn't use login key, it's nearly always rate limiting
|
||||
if (string.IsNullOrEmpty(BotDatabase.LoginKey)) {
|
||||
|
|
Loading…
Reference in a new issue