diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index a28224f08..6aedf35a3 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -2096,11 +2096,13 @@ class Server{ if($this->network instanceof Network){ $this->getLogger()->debug("Stopping network interfaces"); foreach($this->network->getInterfaces() as $interface){ + $this->getLogger()->debug("Stopping network interface " . get_class($interface)); $interface->shutdown(); $this->network->unregisterInterface($interface); } } + $this->getLogger()->debug("Collecting cycles"); gc_collect_cycles(); }catch(\Throwable $e){ $this->logger->logException($e);