From dd1f567d807b412d00049e580d882717dd98e94f Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 5 Dec 2018 22:16:38 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Statistics.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ArchiSteamFarm/Statistics.cs b/ArchiSteamFarm/Statistics.cs index 62c44b4ac..6c45cc629 100644 --- a/ArchiSteamFarm/Statistics.cs +++ b/ArchiSteamFarm/Statistics.cs @@ -353,14 +353,8 @@ namespace ArchiSteamFarm { } } - if ((classIDsToGive.Count == 0) && (classIDsToReceive.Count == 0)) { - Bot.ArchiLogger.LogGenericTrace(string.Format(Strings.ErrorIsEmpty, nameof(classIDsToGive))); - - if (++emptyMatches >= MaxMatchesBotsSoft) { - Bot.ArchiLogger.LogGenericInfo(string.Format(Strings.ActivelyMatchingItemsRound, skippedSetsThisRound.Count)); - return skippedSetsThisRound.Count > 0; - } - + if (skippedSetsThisUser.Count == 0) { + Bot.ArchiLogger.LogGenericTrace(string.Format(Strings.ErrorIsEmpty, nameof(skippedSetsThisUser))); break; } @@ -396,6 +390,10 @@ namespace ArchiSteamFarm { triedSteamIDs[listedUser.SteamID] = byte.MaxValue; } + if (++emptyMatches >= MaxMatchesBotsSoft) { + break; + } + continue; }