This commit is contained in:
2021-08-17 18:46:56 +08:00
parent a943a6ca25
commit 5ba5c930a0
+1 -1
View File
@@ -131,7 +131,7 @@ class Server extends HttpService
public function shutdown()
{
$configs = Config::get('server', [], true);
foreach ($this->manager->sortService($configs) as $config) {
foreach ($this->manager->sortService($configs['ports'] ?? []) as $config) {
$this->manager->stopServer($config['port']);
}
$this->eventDispatch->dispatch(new OnShutdown());