mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Crash main server thread when RakLib dies
this way we get crashdumps and find out what's actually wrong with RakLib in the wild.
This commit is contained in:
@ -103,7 +103,11 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{
|
||||
|
||||
public function tick() : void{
|
||||
if(!$this->rakLib->isRunning() and !$this->rakLib->isShutdown()){
|
||||
throw new \Exception("RakLib Thread crashed");
|
||||
$e = $this->rakLib->getCrashInfo();
|
||||
if($e !== null){
|
||||
throw $e;
|
||||
}
|
||||
throw new \Exception("RakLib Thread crashed without crash information");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user