mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Fixed crashes after scheduleAsyncTaskToWorker() calls
This commit is contained in:
parent
ab4d6b1e36
commit
37ae760417
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user