From 9add6a51e70f0c1b807311f46477fd40af4139e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 2 Sep 2021 14:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/Pool/Pool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Pool/Pool.php b/core/Pool/Pool.php index eb69f839..8cc4f91b 100644 --- a/core/Pool/Pool.php +++ b/core/Pool/Pool.php @@ -98,7 +98,7 @@ class Pool extends Component */ private function newChannel($name, $max = null) { - if ($max !== null) { + if ($max == null) { $max = Config::get('databases.pool.max', 10); } if (Coroutine::getCid() === -1) {