File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments