diff --git a/src/pocketmine/command/CommandReader.php b/src/pocketmine/command/CommandReader.php index fc5bddc89..6978b7e26 100644 --- a/src/pocketmine/command/CommandReader.php +++ b/src/pocketmine/command/CommandReader.php @@ -87,10 +87,11 @@ class CommandReader extends Thread{ $this->buffer->synchronized(function (\Threaded $buffer, $line){ $buffer[] = preg_replace("#\\x1b\\x5b([^\\x1b]*\\x7e|[\\x40-\\x50])#", "", $line); }, $this->buffer, $line); - $lastLine = microtime(true); }elseif((microtime(true) - $lastLine) <= 0.1){ //Non blocking! Sleep to save CPU usleep(40000); } + + $lastLine = microtime(true); } } } \ No newline at end of file