diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 7d381838af18e..286c43fad73de 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -783,8 +783,9 @@ internal async Task ResponsePlay(HashSet gameIDs) { } if (gameIDs.Contains(0)) { - await CardsFarmer.SwitchToManualMode(false).ConfigureAwait(false); - ArchiHandler.PlayGames(0); + if (await CardsFarmer.SwitchToManualMode(false).ConfigureAwait(false)) { + ArchiHandler.PlayGames(0); + } } else { await CardsFarmer.SwitchToManualMode(true).ConfigureAwait(false); ArchiHandler.PlayGames(gameIDs); diff --git a/ArchiSteamFarm/CardsFarmer.cs b/ArchiSteamFarm/CardsFarmer.cs index 3990b4cccaab7..8095227a4bd45 100755 --- a/ArchiSteamFarm/CardsFarmer.cs +++ b/ArchiSteamFarm/CardsFarmer.cs @@ -86,9 +86,9 @@ internal static uint GetAnyGameToFarm(ConcurrentDictionary gamesToF return 0; } - internal async Task SwitchToManualMode(bool manualMode) { + internal async Task SwitchToManualMode(bool manualMode) { if (ManualMode == manualMode) { - return; + return false; } ManualMode = manualMode; @@ -100,6 +100,8 @@ internal async Task SwitchToManualMode(bool manualMode) { Logging.LogGenericInfo("Now running in Automatic Farming mode", Bot.BotName); var start = Task.Run(async () => await StartFarming().ConfigureAwait(false)); } + + return true; } internal bool FarmMultiple(ConcurrentDictionary appIDs) {