From d53e443925f3b7601e4637c624be1137952fe9d8 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Thu, 25 Apr 2024 23:11:57 -0400 Subject: [PATCH] Update the queue when it changed --- .../ScheduledTasks/BaseItemAnalyzerTask.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs index 2870876..c0cbbb1 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs @@ -102,8 +102,9 @@ public class BaseItemAnalyzerTask if (totalRemaining >= queue.Count * modeCount) { + queue = new(Plugin.Instance!.QueuedMediaItems); totalQueued = 0; - foreach (var kvp in Plugin.Instance!.QueuedMediaItems) + foreach (var kvp in queue) { totalQueued += kvp.Value.Count; }