mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 04:38:35 +00:00
PocketMine.php: use main logger to emit force-kill debug
This commit is contained in:
parent
9d1239ed67
commit
0c31b8731f
@ -278,9 +278,7 @@ namespace pocketmine {
|
|||||||
usleep(10000); //Fixes ServerKiller not being able to start on single-core machines
|
usleep(10000); //Fixes ServerKiller not being able to start on single-core machines
|
||||||
|
|
||||||
if(ThreadManager::getInstance()->stopAll() > 0){
|
if(ThreadManager::getInstance()->stopAll() > 0){
|
||||||
if(\pocketmine\DEBUG > 1){
|
$logger->debug("Some threads could not be stopped, performing a force-kill");
|
||||||
echo "Some threads could not be stopped, performing a force-kill" . PHP_EOL . PHP_EOL;
|
|
||||||
}
|
|
||||||
Process::kill(getmypid());
|
Process::kill(getmypid());
|
||||||
}
|
}
|
||||||
}while(false);
|
}while(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user