Fixed crashes after scheduleAsyncTaskToWorker() calls

This commit is contained in:
SOFe 2016-11-13 18:32:11 +08:00
parent ab4d6b1e36
commit 37ae760417
No known key found for this signature in database
GPG Key ID: A0379676C4D9D5D9

View File

@ -93,6 +93,7 @@ class ServerScheduler{
public function scheduleAsyncTaskToWorker(AsyncTask $task, $worker){
$id = $this->nextId();
$task->setTaskId($id);
$task->progressUpdates = new \Threaded;
$this->asyncPool->submitTaskToWorker($task, $worker);
}