From 3e245b707c7bab01c002c923812a138c111af5ed Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 21 Oct 2024 11:05:48 +0200 Subject: [PATCH] Fix updating of moment buckets --- Framework/OverwatchTranscript/MomentReferenceBuilder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Framework/OverwatchTranscript/MomentReferenceBuilder.cs b/Framework/OverwatchTranscript/MomentReferenceBuilder.cs index f8a7c79..e3093e1 100644 --- a/Framework/OverwatchTranscript/MomentReferenceBuilder.cs +++ b/Framework/OverwatchTranscript/MomentReferenceBuilder.cs @@ -24,6 +24,8 @@ namespace OverwatchTranscript log.Debug($"Building references for {buckets.Count} buckets."); while (buckets.Any()) { + foreach (var b in buckets) b.Update(); + buckets.RemoveAll(b => b.IsEmpty); if (!buckets.Any()) break; @@ -68,7 +70,6 @@ namespace OverwatchTranscript { if (bucket.IsEmpty) continue; - bucket.Update(); var utc = bucket.SeeTopUtc(); if (utc == null) continue;