mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Process: apply native typehint to kill()
This commit is contained in:
parent
40fca0936f
commit
e11dbf03e2
@ -123,10 +123,7 @@ final class Process{
|
|||||||
return count(ThreadManager::getInstance()->getAll()) + 2; //MainLogger + Main Thread
|
return count(ThreadManager::getInstance()->getAll()) + 2; //MainLogger + Main Thread
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public static function kill(int $pid) : void{
|
||||||
* @param int $pid
|
|
||||||
*/
|
|
||||||
public static function kill($pid) : void{
|
|
||||||
$logger = \GlobalLogger::get();
|
$logger = \GlobalLogger::get();
|
||||||
if($logger instanceof MainLogger){
|
if($logger instanceof MainLogger){
|
||||||
$logger->syncFlushBuffer();
|
$logger->syncFlushBuffer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user