From 313d353ae5c4354e42c56fb720e0b92e017d1fb3 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 21 Jun 2020 01:05:54 +0200 Subject: [PATCH] Misc edge case --- ArchiSteamFarm/Statistics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Statistics.cs b/ArchiSteamFarm/Statistics.cs index 462f82538..b3a1a7d8e 100644 --- a/ArchiSteamFarm/Statistics.cs +++ b/ArchiSteamFarm/Statistics.cs @@ -675,7 +675,7 @@ namespace ArchiSteamFarm { Bot.ArchiLogger.LogGenericInfo(string.Format(Strings.ActivelyMatchingItemsRound, skippedSetsThisRound.Count)); // Keep matching when we either traded something this round (so it makes sense for a refresh) or if we didn't try all available bots yet (so it makes sense to keep going) - return (skippedSetsThisRound.Count > 0) || triedSteamIDs.Values.All(data => data.Tries < 2); + return (totalMatches > 0) && ((skippedSetsThisRound.Count > 0) || triedSteamIDs.Values.All(data => data.Tries < 2)); } [SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]