mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Updated to new pthreads version, updated RakLib
This commit is contained in:
@ -32,11 +32,14 @@ class ServerKiller extends Thread{
|
||||
}
|
||||
|
||||
public function run(){
|
||||
$start = time() + 1;
|
||||
$this->synchronized(function(){
|
||||
$this->wait($this->time * 1000000);
|
||||
});
|
||||
echo "\nTook too long to stop, server was killed forcefully!\n";
|
||||
@\pocketmine\kill(getmypid());
|
||||
if(time() - $start >= $this->time){
|
||||
echo "\nTook too long to stop, server was killed forcefully!\n";
|
||||
@\pocketmine\kill(getmypid());
|
||||
}
|
||||
}
|
||||
|
||||
public function getThreadName(){
|
||||
|
Reference in New Issue
Block a user