From f36a2d9becba50656c2dfda4bc519fa3398ad2d7 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Tue, 16 Apr 2024 13:50:53 -0400 Subject: [PATCH] Remove refs to AnalyzerTaskIsRunning --- ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs index 4dde913..35271c4 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs @@ -135,7 +135,7 @@ public class Entrypoint : IServerEntryPoint return; } - if (Plugin.Instance!.AnalyzerTaskIsRunning) + if (Entrypoint.AutomaticTaskState == TaskState.Running) { _queueManager.QueueEpisode(episode); } @@ -170,7 +170,7 @@ public class Entrypoint : IServerEntryPoint return; } - if (Plugin.Instance!.AnalyzerTaskIsRunning) + if (Entrypoint.AutomaticTaskState == TaskState.Running) { _queueManager.QueueEpisode(episode); } @@ -206,12 +206,6 @@ public class Entrypoint : IServerEntryPoint return; } - if (Plugin.Instance!.AnalyzerTaskIsRunning && AutomaticTaskState == TaskState.Running) - { - _logger.LogInformation("{0} Automatic Task will be superseded by library scan.", AutomaticTaskState); - CancelAutomaticTask(); - } - StartTimer(); }