Execute now checks if Task is actually in collection

This commit is contained in:
glax 2023-05-19 20:02:58 +02:00
parent 21b8c7e071
commit c1a3532a6c

View File

@ -36,6 +36,9 @@ public class TaskManager
public void ExecuteTaskNow(TrangaTask task)
{
if (!this._allTasks.Contains(task))
return;
Task t = new Task(() =>
{
TaskExecutor.Execute(this.connectors, task, this._chapterCollection);