Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Apr 10, 2024
1 parent e47bd9f commit a0ecb78
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ArchiSteamFarm/Steam/Integration/BotCredentialsProvider.cs
Expand Up @@ -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;
}
}

0 comments on commit a0ecb78

Please sign in to comment.