This commit is contained in:
as2252258@163.com
2021-09-06 01:42:26 +08:00
parent 9ecbb09b45
commit 05adb043f2
+1 -1
View File
@@ -47,7 +47,7 @@ class Pool extends Component
*/ */
protected function pop(Channel $channel, $retain_number): void protected function pop(Channel $channel, $retain_number): void
{ {
if ($channel instanceof Channel && !Context::inCoroutine()) { if (!Context::inCoroutine()) {
$channel->close(); $channel->close();
return; return;
} }