modify plugin name

This commit is contained in:
2022-07-11 18:33:25 +08:00
parent 211905278b
commit 7e409968be
+3 -5
View File
@@ -58,11 +58,9 @@ class Pool extends Component
protected function pop(PoolQueue $channel, $retain_number): void protected function pop(PoolQueue $channel, $retain_number): void
{ {
while ($channel->length() > $retain_number) { while ($channel->length() > $retain_number) {
if (Context::inCoroutine()) { $connection = $channel->pop(0.001);
$connection = $channel->pop(); if ($connection instanceof StopHeartbeatCheck) {
if ($connection instanceof StopHeartbeatCheck) { $connection->stopHeartbeatCheck();
$connection->stopHeartbeatCheck();
}
} }
} }
} }