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