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

8
composer.lock generated
View File

@ -413,12 +413,12 @@
"source": {
"type": "git",
"url": "https://github.com/pmmp/RakLib.git",
"reference": "d9f15311ef328bddd5891fb7e92d2b3a7e48f501"
"reference": "1a213053c51c6793ea050eb9e7d0bc4184dce52c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pmmp/RakLib/zipball/d9f15311ef328bddd5891fb7e92d2b3a7e48f501",
"reference": "d9f15311ef328bddd5891fb7e92d2b3a7e48f501",
"url": "https://api.github.com/repos/pmmp/RakLib/zipball/1a213053c51c6793ea050eb9e7d0bc4184dce52c",
"reference": "1a213053c51c6793ea050eb9e7d0bc4184dce52c",
"shasum": ""
},
"require": {
@ -446,7 +446,7 @@
"source": "https://github.com/pmmp/RakLib/tree/master",
"issues": "https://github.com/pmmp/RakLib/issues"
},
"time": "2019-02-21T14:39:41+00:00"
"time": "2019-03-23T12:51:03+00:00"
},
{
"name": "pocketmine/snooze",

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{