Skip to content

Commit f3da5d6

Browse files
committed
Fix small regression caused by d0cc10f
1 parent 84f33fc commit f3da5d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ArchiSteamFarm/Bot.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ private async Task Start() {
410410
Task.Run(() => HandleCallbacks()).Forget();
411411
}
412412

413-
// 2FA tokens are expiring soon, use limiter only when we don't have any pending
414-
if (TwoFactorCode == null) {
413+
// 2FA tokens are expiring soon, use limiter only when user is providing one
414+
if (TwoFactorCode == null || BotDatabase.SteamGuardAccount != null) {
415415
await Program.LimitSteamRequestsAsync().ConfigureAwait(false);
416416
}
417417

@@ -1422,8 +1422,8 @@ private async void OnDisconnected(SteamClient.DisconnectedCallback callback) {
14221422

14231423
Logging.LogGenericInfo("Reconnecting...", BotName);
14241424

1425-
// 2FA tokens are expiring soon, use limiter only when we don't have any pending
1426-
if (TwoFactorCode == null) {
1425+
// 2FA tokens are expiring soon, use limiter only when user is providing one
1426+
if (TwoFactorCode == null || BotDatabase.SteamGuardAccount != null) {
14271427
await Program.LimitSteamRequestsAsync().ConfigureAwait(false);
14281428
}
14291429

0 commit comments

Comments
 (0)