From f5db735597cf9d3bf59688ea467c1d1b7a5eb25b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 4 Jan 2021 16:17:59 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 5da4fe13..58360ebb 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -408,13 +408,13 @@ class Connection extends Pool } /** - * @param string $coroutineName + * @param string $name */ - public function desc(string $coroutineName) + public function desc(string $name) { - if (!isset($this->hasCreate[$coroutineName])) { - $this->hasCreate[$coroutineName] = 0; + if (!isset($this->hasCreate[$name])) { + return; } - $this->hasCreate[$coroutineName] -= 1; + $this->hasCreate[$name] -= 1; } }