mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Fixed pthreads crashes with progressUpdates
This commit is contained in:
@ -78,6 +78,7 @@ class ServerScheduler{
|
||||
public function scheduleAsyncTask(AsyncTask $task){
|
||||
$id = $this->nextId();
|
||||
$task->setTaskId($id);
|
||||
$task->progressUpdates = new \Threaded;
|
||||
$this->asyncPool->submitTask($task);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user