SourceInterface: removed redundant return value from process()

This commit is contained in:
Dylan K. Taylor
2018-05-05 15:30:46 +01:00
parent 38c3f00ef7
commit f497e43db3
2 changed files with 4 additions and 11 deletions

View File

@ -89,19 +89,12 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
$this->network = $network;
}
public function process() : bool{
$work = false;
if($this->interface->handlePacket()){
$work = true;
while($this->interface->handlePacket()){
}
}
public function process() : void{
while($this->interface->handlePacket()){}
if(!$this->rakLib->isRunning() and !$this->rakLib->isShutdown()){
throw new \Exception("RakLib Thread crashed");
}
return $work;
}
public function closeSession(string $identifier, string $reason) : void{