diff --git a/src/pocketmine/network/RakLibInterface.php b/src/pocketmine/network/RakLibInterface.php index f996c70d0..604569f0d 100644 --- a/src/pocketmine/network/RakLibInterface.php +++ b/src/pocketmine/network/RakLibInterface.php @@ -117,7 +117,12 @@ class RakLibInterface implements ServerInstance, SourceInterface{ } public function process(){ - return $this->interface->handlePacket(); + $work = false; + if($this->interface->handlePacket()){ + $work = true; + while($this->interface->handlePacket()){} + } + return $work; } public function closeSession($identifier, $reason){