From 28baae8154cc2a4251ae70488d17e9c82b39de24 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 1 Feb 2017 17:59:13 +0000 Subject: [PATCH] Fix RakLib crashing without logging any useful crash information --- src/pocketmine/network/RakLibInterface.php | 2 +- src/raklib | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/network/RakLibInterface.php b/src/pocketmine/network/RakLibInterface.php index 7ff61e331e..72f4fd3922 100644 --- a/src/pocketmine/network/RakLibInterface.php +++ b/src/pocketmine/network/RakLibInterface.php @@ -77,7 +77,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{ } } - if($this->rakLib->isTerminated()){ + if(!$this->rakLib->isRunning() and !$this->rakLib->isShutdown()){ $this->network->unregisterInterface($this); throw new \Exception("RakLib Thread crashed"); diff --git a/src/raklib b/src/raklib index f4bfcb8e6b..989ad8198c 160000 --- a/src/raklib +++ b/src/raklib @@ -1 +1 @@ -Subproject commit f4bfcb8e6b7cf93f3961dd8fc9c5ba44ce068763 +Subproject commit 989ad8198cb5dd9b463a03831c1332e4cea60858