From 6ec7d346dea3c87186226d0f57116033fb77bcd9 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 1 Apr 2023 22:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoroutineServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoroutineServer.php b/CoroutineServer.php index 1a181c6..ee10b3b 100644 --- a/CoroutineServer.php +++ b/CoroutineServer.php @@ -70,7 +70,7 @@ class CoroutineServer implements ServerInterface { $service = $this->genConfigService($service); foreach ($service as $value) { - if ($value['type'] == Constant::SERVER_TYPE_HTTP) { + if ($value->getType() == Constant::SERVER_TYPE_HTTP) { $this->addListener($value); } }