From b1e94bd24c25e2555c5353cbcdda20b8d3eaf1d0 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX <1173913+AbandonedCart@users.noreply.github.com> Date: Sun, 14 Apr 2024 09:36:27 -0400 Subject: [PATCH] Library scan should supersede add or modify (#117) --- ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs index de81ecf..97abcc7 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs @@ -190,6 +190,12 @@ 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(); }