corrected check for tasktype on due

This commit is contained in:
glax 2023-05-31 21:42:23 +02:00
parent f892db7dda
commit d477cd1ccd

View File

@ -95,7 +95,7 @@ public class TaskManager
foreach (TrangaTask task in _allTasks.Where(aTask => aTask.ShouldExecute())) foreach (TrangaTask task in _allTasks.Where(aTask => aTask.ShouldExecute()))
{ {
task.state = TrangaTask.ExecutionState.Enqueued; task.state = TrangaTask.ExecutionState.Enqueued;
if(task.connectorName is null) if(task.task == TrangaTask.Task.UpdateKomgaLibrary)
ExecuteTaskNow(task); ExecuteTaskNow(task);
else else
{ {