改名
This commit is contained in:
@@ -77,8 +77,10 @@ class Server extends Application
|
|||||||
$this->enableCoroutine((bool)Config::get('settings.enable_coroutine'));
|
$this->enableCoroutine((bool)Config::get('settings.enable_coroutine'));
|
||||||
foreach ($this->sortServers($configs) as $server) {
|
foreach ($this->sortServers($configs) as $server) {
|
||||||
$this->create($server);
|
$this->create($server);
|
||||||
|
if (!$this->baseServer) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->onProcessListener();
|
$this->onProcessListener();
|
||||||
return $this->getServer();
|
return $this->getServer();
|
||||||
}
|
}
|
||||||
@@ -96,6 +98,9 @@ class Server extends Application
|
|||||||
$configs = Config::get('servers', true);
|
$configs = Config::get('servers', true);
|
||||||
Snowflake::clearWorkerId();
|
Snowflake::clearWorkerId();
|
||||||
$baseServer = $this->initCore($configs);
|
$baseServer = $this->initCore($configs);
|
||||||
|
if (!$baseServer) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$baseServer->start();
|
$baseServer->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user