diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 0d82f1072..f977be94b 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -1377,10 +1377,6 @@ namespace ArchiSteamFarm { return; } - if (!KeepRunning) { - return; - } - if (InvalidPassword) { InvalidPassword = false; if (!string.IsNullOrEmpty(BotDatabase.LoginKey)) { // InvalidPassword means usually that login key has expired, if we used it @@ -1402,6 +1398,10 @@ namespace ArchiSteamFarm { await Utilities.SleepAsync(Program.GlobalConfig.AccountPlayingDelay * 60 * 1000).ConfigureAwait(false); } + if (!KeepRunning || SteamClient.IsConnected) { + return; + } + Logging.LogGenericInfo("Reconnecting...", BotName); // 2FA tokens are expiring soon, use limiter only when we don't have any pending