Removed sleep from ServerKiller

This commit is contained in:
Shoghi Cervantes 2015-09-13 17:38:55 +02:00
parent 2d1b2050dc
commit 21c3d03000

View File

@ -32,7 +32,9 @@ class ServerKiller extends Thread{
} }
public function run(){ 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"; echo "\nTook too long to stop, server was killed forcefully!\n";
@\pocketmine\kill(getmypid()); @\pocketmine\kill(getmypid());
} }