From 01e210ed9ff460e784d7e689989d7684fae4c160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 2 Mar 2021 16:29:43 +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 4fa7958a..30370079 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -274,7 +274,7 @@ abstract class Pool extends Component */ public function clean(string $name) { - if (Timer::exists($this->creates)) { + if ($this->creates > -1 && Timer::exists($this->creates)) { Timer::clear($this->creates); } if (!Context::inCoroutine() || !isset($this->_items[$name])) {