Fix small regression caused by d0cc10f3c6

This commit is contained in:
JustArchi
2016-04-23 16:21:12 +02:00
parent 84f33fcef4
commit f3da5d6afc

View File

@@ -410,8 +410,8 @@ namespace ArchiSteamFarm {
Task.Run(() => HandleCallbacks()).Forget();
}
// 2FA tokens are expiring soon, use limiter only when we don't have any pending
if (TwoFactorCode == null) {
// 2FA tokens are expiring soon, use limiter only when user is providing one
if (TwoFactorCode == null || BotDatabase.SteamGuardAccount != null) {
await Program.LimitSteamRequestsAsync().ConfigureAwait(false);
}
@@ -1422,8 +1422,8 @@ namespace ArchiSteamFarm {
Logging.LogGenericInfo("Reconnecting...", BotName);
// 2FA tokens are expiring soon, use limiter only when we don't have any pending
if (TwoFactorCode == null) {
// 2FA tokens are expiring soon, use limiter only when user is providing one
if (TwoFactorCode == null || BotDatabase.SteamGuardAccount != null) {
await Program.LimitSteamRequestsAsync().ConfigureAwait(false);
}