From 246ab48e9825e535da939325c7db8745930d5c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Feb 2021 14:28:46 +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 188500ac..c97abf22 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -62,7 +62,7 @@ abstract class Pool extends Component return $this->createClient($name, $callback); } if (!$this->hasItem($name)) { - if ($this->creates === -1) { + if ($this->creates === -1 && !is_callable($callback)) { $this->creates = Timer::tick(1000, [$this, 'Heartbeat_detection']); } if (!Context::hasContext('create::client::ing::' . $name)) {