From 85f2d93a9c330af7488108bcea59a6078dbbef31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 4 Sep 2020 18:54:12 +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, 3 insertions(+) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index c752d327..2e37d944 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -215,6 +215,9 @@ class Connection extends Pool private function nowClient($coroutineName, $config) { $client = $this->createConnect($config['cds'], $config['username'], $config['password']); + if ($this->hasLength($coroutineName)) { + return $this->getByChannel($coroutineName, $config); + } $this->success('create db client -> ' . $config['cds'] . ':' . $this->hasLength($coroutineName)); if (isset(Context::getContext('begin_' . $coroutineName)[Coroutine::getCid()])) { $number = Context::getContext('begin_' . $coroutineName)[Coroutine::getCid()];