Updated RakLib dependency

This commit is contained in:
Dylan K. Taylor
2019-03-23 12:52:50 +00:00
parent d4fe004375
commit 15c6554d8a
2 changed files with 7 additions and 5 deletions

View File

@ -99,7 +99,9 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{
$this->server->getTickSleeper()->addNotifier($this->sleeper, function() : void{
while($this->interface->handlePacket());
});
$this->rakLib->start(PTHREADS_INHERIT_CONSTANTS); //HACK: MainLogger needs constants for exception logging
$this->server->getLogger()->debug("Waiting for RakLib to start...");
$this->rakLib->startAndWait(PTHREADS_INHERIT_CONSTANTS); //HACK: MainLogger needs constants for exception logging
$this->server->getLogger()->debug("RakLib booted successfully");
}
public function getConnectionCount() : int{