diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 343998a4..855ff96c 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -173,7 +173,7 @@ abstract class Pool extends Component return $this->createClient($name, $callback); } $channel = static::$_items[$name] ?? new Channel($this->max); - if (!isset(static::$_items[$name])) { + if (!((static::$_items[$name] ?? null) instanceof Channel)) { static::$_items[$name] = $channel; } if ($channel->isEmpty()) {