Library scan should supersede add or modify (#117)

This commit is contained in:
TwistedUmbrellaX 2024-04-14 09:36:27 -04:00 committed by TwistedUmbrellaX
parent 6cc69fc0ee
commit 141156dad7

View File

@ -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();
}