From be2e173404f483051f7448a5e6a0b3eb55988ca4 Mon Sep 17 00:00:00 2001 From: Archi Date: Wed, 3 Jan 2024 00:34:12 +0100 Subject: [PATCH] Misc followup --- .../RemoteCommunication.cs | 2 +- Directory.Build.props | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs index d00bd397f..6fba39c5d 100644 --- a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs +++ b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs @@ -537,7 +537,7 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable { string checksum = Backend.GenerateChecksumFor(assetsForListing); string? previousChecksum = BotCache.LastAnnouncedAssetsForListing.Count > 0 ? Backend.GenerateChecksumFor(BotCache.LastAnnouncedAssetsForListing) : null; - if ((tradeToken == BotCache.LastAnnouncedTradeToken) && (checksum == previousChecksum)) { + if (BotCache.LastRequestAt.HasValue && (DateTime.UtcNow.Subtract(BotCache.LastRequestAt.Value).TotalDays < MaxInactivityDays) && (tradeToken == BotCache.LastAnnouncedTradeToken) && (checksum == previousChecksum)) { // We've determined our state to be the same, we can skip announce entirely and start sending heartbeats exclusively bool triggerImmediately = !ShouldSendHeartBeats; diff --git a/Directory.Build.props b/Directory.Build.props index 4001b284d..f1f465d4b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 5.5.2.0 + 5.5.1.4