From 2db271dab3da554c3d1760283ed6873b99d590d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 24 Aug 2021 15:50:04 +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/Pool.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/System/Pool/Pool.php b/System/Pool/Pool.php index 8a26c84e..eb69f839 100644 --- a/System/Pool/Pool.php +++ b/System/Pool/Pool.php @@ -65,11 +65,10 @@ class Pool extends Component { $name = $this->name($name, $isMaster); if (isset(static::$_connections[$name])) { - return; - } - $value = static::$_connections[$name]; - if ($value instanceof Channel || $value instanceof SplQueue) { - return; + $value = static::$_connections[$name]; + if ($value instanceof Channel || $value instanceof SplQueue) { + return; + } } $this->newChannel($name, $max); $this->max = $max;