mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Misc
This commit is contained in:
parent
e47bd9faa4
commit
a0ecb78086
1 changed files with 5 additions and 5 deletions
|
@ -81,19 +81,19 @@ internal sealed class BotCredentialsProvider : IAuthenticator {
|
|||
|
||||
Bot.ArchiLogger.LogGenericWarning(string.Format(CultureInfo.CurrentCulture, Strings.BotUnableToLogin, reason, reason));
|
||||
|
||||
if (++LoginFailures >= MaxLoginFailures) {
|
||||
await CancellationTokenSource.CancelAsync().ConfigureAwait(false);
|
||||
await CancellationTokenSource.CancelAsync().ConfigureAwait(false);
|
||||
|
||||
return "";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
string? result = await Bot.RequestInput(inputType, previousCodeWasIncorrect).ConfigureAwait(false);
|
||||
|
||||
if (string.IsNullOrEmpty(result)) {
|
||||
await CancellationTokenSource.CancelAsync().ConfigureAwait(false);
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
return result ?? "";
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue