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