From 727d9aa216978eb89f2cb054ee6199f70c94a26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 15 Feb 2021 13:23:17 +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/Abstracts/Pool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 661adfe1..0635953a 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -124,7 +124,7 @@ abstract class Pool extends Component */ public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|null { - if (!$this->hasItem($coroutineName)) { + if ($this->hasItem($coroutineName)) { return $this->get($coroutineName)[1]; } if (Context::hasContext('create:connect:' . $coroutineName)) {