From 2043456bdcc7c2a8122ff9fe5abb8eeab6085a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 7 Sep 2020 15:24:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Server.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/HttpServer/Server.php b/HttpServer/Server.php index 15c07f44..d47c0e99 100644 --- a/HttpServer/Server.php +++ b/HttpServer/Server.php @@ -92,14 +92,12 @@ class Server extends Application public function start() { $configs = Config::get('servers', true); - $baseServer = $this->initCore($configs); - foreach ($configs as $config) { - var_dump($this->isUse($config['port'])); if ($this->isUse($config['port'])) { return $this->error('Port ' . $config['host'] . '::' . $config['port'] . ' is already.'); } } + $baseServer = $this->initCore($configs); $baseServer->start(); }