From 0535d6fd7f726f87a4b1af48e6767fe95f324b64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 17 Jun 2022 12:09:07 +0800 Subject: [PATCH] modify plugin name --- kiri-engine/Pool/Pool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-engine/Pool/Pool.php b/kiri-engine/Pool/Pool.php index b2ea223a..452b2aba 100644 --- a/kiri-engine/Pool/Pool.php +++ b/kiri-engine/Pool/Pool.php @@ -104,7 +104,7 @@ class Pool extends Component if (!isset(static::$_connections[$name])) { $this->newChannel($name); } - if (static::$_connections[$name]->errCode == SWOOLE_CHANNEL_CLOSED) { + if (static::$_connections[$name]->isClose()) { throw new Exception('Channel is Close.'); } return static::$_connections[$name];