mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +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){
|
public function scheduleAsyncTaskToWorker(AsyncTask $task, $worker){
|
||||||
$id = $this->nextId();
|
$id = $this->nextId();
|
||||||
$task->setTaskId($id);
|
$task->setTaskId($id);
|
||||||
|
$task->progressUpdates = new \Threaded;
|
||||||
$this->asyncPool->submitTaskToWorker($task, $worker);
|
$this->asyncPool->submitTaskToWorker($task, $worker);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user