mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Added extra memory reportings (heap, stack), stop tasks faster, added extra timeouts fro ServerKiller
This commit is contained in:
@ -25,8 +25,14 @@ use pocketmine\Thread;
|
||||
|
||||
class ServerKiller extends Thread{
|
||||
|
||||
public $time;
|
||||
|
||||
public function __construct($time = 15){
|
||||
$this->time = $time;
|
||||
}
|
||||
|
||||
public function run(){
|
||||
sleep(15);
|
||||
sleep($this->time);
|
||||
echo "\nTook to long to stop, server was killed forcefully!\n";
|
||||
@\pocketmine\kill(getmypid());
|
||||
}
|
||||
|
Reference in New Issue
Block a user