From da361fcca21f998f510859e9756adf7abf20edee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 7 Feb 2023 17:46:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Pool/Pool.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kiri-engine/Pool/Pool.php b/kiri-engine/Pool/Pool.php index 953b373f..7ba76396 100644 --- a/kiri-engine/Pool/Pool.php +++ b/kiri-engine/Pool/Pool.php @@ -41,8 +41,9 @@ class Pool extends Component */ public function flush($name, $retain_number) { - $channel = $this->channel($name); - $this->pop($channel, $retain_number); + if ($this->hasChannel($name)) { + $this->pop($this->channel($name), $retain_number); + } }