diff --git a/classes/PocketMinecraftServer.class.php b/classes/PocketMinecraftServer.class.php index bc0b1435..81c6c958 100644 --- a/classes/PocketMinecraftServer.class.php +++ b/classes/PocketMinecraftServer.class.php @@ -411,7 +411,7 @@ class PocketMinecraftServer extends stdClass{ if($packet !== false){ $this->packetHandler($packet); }else{ - usleep(10000); + usleep(1000); } } } diff --git a/classes/Session.class.php b/classes/Session.class.php index 495cc0b7..ff208a68 100644 --- a/classes/Session.class.php +++ b/classes/Session.class.php @@ -55,7 +55,7 @@ class Session{ if($time > $this->timeout){ $this->close("timeout"); }else{ - if(count($this->queue) > 0){ + if(!empty($this->queue)){ $cnt = 0; while($cnt < 4){ $p = array_shift($this->queue);