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);