Network->unregisterInterface() is now less useless

Interfaces are now automatically shut down when unregistered.
This commit is contained in:
Dylan K. Taylor
2019-02-10 17:07:58 +00:00
parent 9ebd559907
commit b6bcb47deb
2 changed files with 7 additions and 2 deletions

View File

@ -1683,7 +1683,6 @@ class Server{
$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);
}
}