mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
Fixed crashes after scheduleAsyncTaskToWorker() calls
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user