taskmanager: try to start next waiting tasks when a task finishes

Fixes bug where tasks would get stuck indefinitely.
This commit is contained in:
itsmattkc
2020-02-16 10:28:34 +11:00
parent 35ab379e9f
commit e93c3d4ce4
+3
View File
@@ -181,6 +181,9 @@ void TaskManager::TaskFinished(Task* task)
// Decrement the active thread count
active_thread_count_--;
// Start any tasks that could start now
StartNextWaiting();
}
TaskManager::TaskStatus TaskManager::GetTaskStatus(Task *t)