mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed Generator Thread as specified on krakjoe/pthreads#349
This commit is contained in:
parent
dbd1f3f96e
commit
d991c32435
@ -275,7 +275,10 @@ class GenerationManager{
|
||||
$this->shutdown = true;
|
||||
}
|
||||
}elseif(count($this->thread->getInternalQueue()) === 0){
|
||||
$this->thread->wait(50000);
|
||||
$this->thread->synchronized(function(){
|
||||
$this->thread->wait(50000);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user