This commit is contained in:
2021-08-17 18:45:22 +08:00
parent 97c5d94a64
commit a943a6ca25
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ class Server extends HttpService
public function shutdown()
{
$configs = Config::get('server', [], true);
foreach ($configs['ports'] ?? [] as $config) {
foreach ($this->manager->sortService($configs) as $config) {
$this->manager->stopServer($config['port']);
}
$this->eventDispatch->dispatch(new OnShutdown());