Fix updating of moment buckets

This commit is contained in:
benbierens 2024-10-21 11:05:48 +02:00
parent d8a6df5845
commit 3e245b707c
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
1 changed files with 2 additions and 1 deletions

View File

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