From eb7c31d3ffb209faf433b468e4ee7d28c3856795 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 29 Mar 2020 16:26:22 +0100 Subject: [PATCH] RakLibInterface: remove useless shutdown check from tick() the thread should never be shutdown during an update cycle, because we stop the interface from being ticked when it gets shutdown. --- src/network/mcpe/raklib/RakLibInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/mcpe/raklib/RakLibInterface.php b/src/network/mcpe/raklib/RakLibInterface.php index fa53227cf..c6f3f8860 100644 --- a/src/network/mcpe/raklib/RakLibInterface.php +++ b/src/network/mcpe/raklib/RakLibInterface.php @@ -105,7 +105,7 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{ } public function tick() : void{ - if(!$this->rakLib->isRunning() and !$this->rakLib->isShutdown()){ + if(!$this->rakLib->isRunning()){ $e = $this->rakLib->getCrashInfo(); if($e !== null){ throw $e;