Library scan should supersede add or modify (#117)

This commit is contained in:
TwistedUmbrellaX 2024-04-14 09:36:27 -04:00 committed by GitHub
parent d35c337c28
commit b1e94bd24c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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