mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-15 22:05:06 +00:00
Added synchronization to GenerationThread::pushMainToThreadPacket()
This commit is contained in:
@ -53,7 +53,9 @@ class GenerationThread extends Thread{
|
||||
|
||||
public function pushMainToThreadPacket($str){
|
||||
$this->internalQueue[] = $str;
|
||||
$this->notify();
|
||||
$this->synchronized(function(){
|
||||
$this->notify();
|
||||
});
|
||||
}
|
||||
|
||||
public function readMainToThreadPacket(){
|
||||
|
Reference in New Issue
Block a user