mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 11:27:32 +01:00
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)
|
public void ExecuteTaskNow(TrangaTask task)
|
||||||
{
|
{
|
||||||
|
if (!this._allTasks.Contains(task))
|
||||||
|
return;
|
||||||
|
|
||||||
Task t = new Task(() =>
|
Task t = new Task(() =>
|
||||||
{
|
{
|
||||||
TaskExecutor.Execute(this.connectors, task, this._chapterCollection);
|
TaskExecutor.Execute(this.connectors, task, this._chapterCollection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user