modify plugin name

This commit is contained in:
2022-07-11 18:33:25 +08:00
parent 211905278b
commit 7e409968be
+1 -3
View File
@@ -58,14 +58,12 @@ 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();
} }
} }
} }
}
/** /**