}// ----------------------------------------- // End a task properly // Task has either Completed or Failed private void killTask(CTask t) { TASKS_RUNNING--; slots_active[t.SLOT] = false; slots_progress[t.SLOT] = -1; if (!t.FLAG_PROGRESS_DISABLE) { TASKS_COMPLETED_PROGRESS += TASK_PROGRESS_RATIO * 100; } currentTasks.Remove(t); t.kill(); }// -----------------------------------------
}// ----------------------------------------- // End a task properly // Task has either Completed or Failed private void killTask(CTask t) { slots[t.SLOT] = false; currentTasks.Remove(t); t.kill(); }// -----------------------------------------