This commit is contained in:
2021-11-11 01:32:04 +08:00
parent 429ffe561c
commit 471f7a92bb
+4
View File
@@ -220,6 +220,10 @@ class Pool extends Component
return;
}
while (static::$_connections[$name]->length() > 0) {
if (!Context::inCoroutine() && static::$_connections[$name] instanceof Channel)
{
break;
}
$client = static::$_connections[$name]->pop();
if ($client instanceof StopHeartbeatCheck) {
$client->stopHeartbeatCheck();