diff --git a/core/Pool/Pool.php b/core/Pool/Pool.php index 2c637c04..574292bd 100644 --- a/core/Pool/Pool.php +++ b/core/Pool/Pool.php @@ -47,7 +47,7 @@ class Pool extends Component */ protected function pop(Channel $channel, $retain_number): void { - if ($channel instanceof Channel && !Context::inCoroutine()) { + if (!Context::inCoroutine()) { $channel->close(); return; }