mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-05 00:20:08 +00:00
Fix login limiter not working properly when Steam is entirely down
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user