CardsFarmer optimizations

When user has IQ only and no IQ games, return early
This commit is contained in:
JustArchi
2019-03-08 15:39:38 +01:00
parent d0ba8c347a
commit d6f122b078
2 changed files with 3 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ namespace ArchiSteamFarm {
}
internal bool HasGamesToRedeemInBackground => GamesToRedeemInBackgroundCount > 0;
internal bool HasIdlingPriorityAppIDs => IdlingPriorityAppIDs.Count > 0;
[JsonProperty(Required = Required.DisallowNull)]
private readonly ConcurrentHashSet<ulong> BlacklistedFromTradesSteamIDs = new ConcurrentHashSet<ulong>();

View File

@@ -227,7 +227,8 @@ namespace ArchiSteamFarm {
return;
}
if (!Bot.CanReceiveSteamCards) {
if (!Bot.CanReceiveSteamCards || (Bot.BotConfig.IdlePriorityQueueOnly && !Bot.BotDatabase.HasIdlingPriorityAppIDs)) {
Bot.ArchiLogger.LogGenericInfo(Strings.NothingToIdle);
await Bot.OnFarmingFinished(false).ConfigureAwait(false);
return;