mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Added synchronization to GenerationThread::pushMainToThreadPacket()
This commit is contained in:
parent
d991c32435
commit
b5deae7ba0
@ -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(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user