mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +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
|
||||
|
||||
if(ThreadManager::getInstance()->stopAll() > 0){
|
||||
if(\pocketmine\DEBUG > 1){
|
||||
echo "Some threads could not be stopped, performing a force-kill" . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
$logger->debug("Some threads could not be stopped, performing a force-kill");
|
||||
Process::kill(getmypid());
|
||||
}
|
||||
}while(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user