From a64c5c4f4dd1f90a440f4579bc342ecdaab60bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 2 Mar 2021 18:39:25 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index a0173cc1..f23daa76 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -277,9 +277,9 @@ abstract class Pool extends Component */ public function clean(string $name) { - var_dump(Timer::clear($this->creates)); + var_dump($name, Timer::clear($this->creates)); // $this->warning('release ' . get_called_class() . ' pool...'); - if (!isset($this->_items[$name])) { + if (!Context::inCoroutine() || !isset($this->_items[$name])) { return; } $channel = $this->_items[$name];