This commit is contained in:
2020-09-02 11:59:04 +08:00
parent 6eec72e975
commit bda47b3115
+1 -1
View File
@@ -153,7 +153,7 @@ class Server extends Application
*/
private function dispatchCreate($config, $settings)
{
if (!$this->baseServer) {
if (!($this->baseServer instanceof \Swoole\Server)) {
$class = $this->dispatch($config['type']);
$this->baseServer = new $class($config['host'], $config['port'], SWOOLE_PROCESS, $config['mode']);
$this->baseServer->set($settings);