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];