mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Removed sleep from ServerKiller
This commit is contained in:
parent
2d1b2050dc
commit
21c3d03000
@ -32,7 +32,9 @@ class ServerKiller extends Thread{
|
||||
}
|
||||
|
||||
public function run(){
|
||||
sleep($this->time);
|
||||
$this->synchronized(function(){
|
||||
$this->wait($this->time * 1000000);
|
||||
});
|
||||
echo "\nTook too long to stop, server was killed forcefully!\n";
|
||||
@\pocketmine\kill(getmypid());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user