From 05adb043f20c39a9a548dedd0efc716d3860dc6d Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 6 Sep 2021 01:42:26 +0800 Subject: [PATCH] 111 --- core/Pool/Pool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }