diff --git a/http-server/Server.php b/http-server/Server.php index 981613fd..7ed1a463 100644 --- a/http-server/Server.php +++ b/http-server/Server.php @@ -60,16 +60,6 @@ class Server extends Application private $baseServer; - /** - * @throws ConfigException - * @throws Exception - */ - public function init() - { - $this->initCore(Config::get('servers', true)); - } - - /** * @param array $configs * @return Http|Packet|Receive|WebSocket @@ -97,13 +87,17 @@ class Server extends Application /** - * @return mixed + * @return void * * start server + * @throws ConfigException + * @throws Exception */ public function start() { - return $this->baseServer->start(); + $configs = Config::get('servers', true); + $baseServer = $this->initCore($configs); + $baseServer->start(); }