From 4727c772329606105ce776acea7a8fe61f1d6ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 4 Sep 2020 19:21:43 +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 --- System/Pool/Connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index f5d1ebbd..c3983f70 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -200,7 +200,8 @@ class Connection extends Pool return $client; } - if ($this->hasItem($coroutineName) < 1) { + + if ($this->size($coroutineName) < 1) { return $this->saveClient($coroutineName, $this->nowClient($coroutineName, $config)); } return $this->getByChannel($coroutineName, $config);