From 141156dad785ec6b70f974c87163a364eb8e7a95 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 65387f2..0ed7ea1 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs @@ -207,6 +207,12 @@ public class Entrypoint : IHostedService, IDisposable return; } + if (Plugin.Instance!.AnalyzerTaskIsRunning && AutomaticTaskState == TaskState.Running) + { + _logger.LogInformation("{0} Automatic Task will be superseded by library scan.", AutomaticTaskState); + CancelAutomaticTask(); + } + StartTimer(); }