mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
backport 0c31b8731fe68bd56dbbfcc5eed77dedef914664: PocketMine.php: use main logger to emit force-kill debug
This commit is contained in:
parent
1163ac1d7a
commit
3e993250d8
@ -280,9 +280,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;
|
|
||||||
}
|
|
||||||
Utils::kill(getmypid());
|
Utils::kill(getmypid());
|
||||||
}
|
}
|
||||||
}while(false);
|
}while(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user