This commit is contained in:
2021-11-11 02:22:14 +08:00
parent 471f7a92bb
commit 6a5205e9a1
+4 -1
View File
@@ -220,9 +220,12 @@ class Pool extends Component
return; return;
} }
while (static::$_connections[$name]->length() > 0) { while (static::$_connections[$name]->length() > 0) {
if (!Context::inCoroutine() && static::$_connections[$name] instanceof Channel) if (static::$_connections[$name] instanceof Channel)
{
if (!Context::inCoroutine())
{ {
break; break;
}
} }
$client = static::$_connections[$name]->pop(); $client = static::$_connections[$name]->pop();
if ($client instanceof StopHeartbeatCheck) { if ($client instanceof StopHeartbeatCheck) {