mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
Server: more shutdown debug
This commit is contained in:
parent
68b30108be
commit
b659a3d39f
@ -2096,11 +2096,13 @@ class Server{
|
|||||||
if($this->network instanceof Network){
|
if($this->network instanceof Network){
|
||||||
$this->getLogger()->debug("Stopping network interfaces");
|
$this->getLogger()->debug("Stopping network interfaces");
|
||||||
foreach($this->network->getInterfaces() as $interface){
|
foreach($this->network->getInterfaces() as $interface){
|
||||||
|
$this->getLogger()->debug("Stopping network interface " . get_class($interface));
|
||||||
$interface->shutdown();
|
$interface->shutdown();
|
||||||
$this->network->unregisterInterface($interface);
|
$this->network->unregisterInterface($interface);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->getLogger()->debug("Collecting cycles");
|
||||||
gc_collect_cycles();
|
gc_collect_cycles();
|
||||||
}catch(\Throwable $e){
|
}catch(\Throwable $e){
|
||||||
$this->logger->logException($e);
|
$this->logger->logException($e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user