Remove refs to AnalyzerTaskIsRunning

This commit is contained in:
TwistedUmbrellaX 2024-04-16 13:50:53 -04:00
parent 34c4e6eaab
commit f36a2d9bec

View File

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