Execute now checks if Task is actually in collection
This commit is contained in:
parent
21b8c7e071
commit
c1a3532a6c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user