mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Utils: Make kill() use static MainLogger instead of global variable
This commit is contained in:
@ -545,9 +545,8 @@ class Utils{
|
||||
}
|
||||
|
||||
public static function kill($pid) : void{
|
||||
global $logger;
|
||||
if($logger instanceof MainLogger){
|
||||
$logger->syncFlushBuffer();
|
||||
if(MainLogger::isRegisteredStatic()){
|
||||
MainLogger::getLogger()->syncFlushBuffer();
|
||||
}
|
||||
switch(Utils::getOS()){
|
||||
case "win":
|
||||
|
Reference in New Issue
Block a user