Fix RakLib crashing without logging any useful crash information

This commit is contained in:
Dylan K. Taylor
2017-02-01 17:59:13 +00:00
parent 06c399fa05
commit 28baae8154
2 changed files with 2 additions and 2 deletions

View File

@@ -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");