Misc followup

This commit is contained in:
Archi
2024-01-03 00:34:12 +01:00
parent bfb189d55b
commit be2e173404
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>5.5.2.0</Version>
<Version>5.5.1.4</Version>
</PropertyGroup>
<PropertyGroup>