mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
Added MemoryManager, new memory properties, improved performance, updated RakLib, fixed misc. bugs
This commit is contained in:
@ -78,7 +78,7 @@ class CommandReader extends Thread{
|
||||
if(($line = $this->readLine()) !== ""){
|
||||
$this->buffer->synchronized(function (\Threaded $buffer, $line){
|
||||
$buffer[] = preg_replace("#\\x1b\\x5b([^\\x1b]*\\x7e|[\\x40-\\x50])#", "", $line);
|
||||
}, $this->buffer, $line );
|
||||
}, $this->buffer, $line);
|
||||
}elseif((microtime(true) - $lastLine) <= 0.1){ //Non blocking! Sleep to save CPU
|
||||
usleep(40000);
|
||||
}
|
||||
|
Reference in New Issue
Block a user