From 84be0f8077ece9e443f3d5db8f921bd98d56606d Mon Sep 17 00:00:00 2001 From: Archi Date: Thu, 12 Jan 2023 11:47:45 +0100 Subject: [PATCH] Misc We can save some excessive memory I guess --- .../RemoteCommunication.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs index 58dc54094..8120da4cd 100644 --- a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs +++ b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs @@ -337,10 +337,12 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable { AnnouncedItems[item.AssetID] = item.Amount; } - Bot.ArchiLogger.LogGenericInfo(Strings.Success); + AnnouncedItems.TrimExcess(); } finally { RequestsSemaphore.Release(); } + + Bot.ArchiLogger.LogGenericInfo(Strings.Success); } internal void TriggerMatchActivelyEarlier() {