Updated to new pthreads version, updated RakLib

This commit is contained in:
Shoghi Cervantes
2015-09-27 13:37:27 +02:00
parent 0bcf639a98
commit ddc140af5e
10 changed files with 33 additions and 26 deletions

View File

@ -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(){