111
This commit is contained in:
@@ -46,6 +46,10 @@ class Pool extends Component
|
|||||||
*/
|
*/
|
||||||
protected function pop(Channel $channel, $retain_number): void
|
protected function pop(Channel $channel, $retain_number): void
|
||||||
{
|
{
|
||||||
|
if ($channel instanceof Channel && Coroutine::getCid() === -1) {
|
||||||
|
unset($channel);
|
||||||
|
return;
|
||||||
|
}
|
||||||
while ($channel->length() > $retain_number) {
|
while ($channel->length() > $retain_number) {
|
||||||
$connection = $channel->pop();
|
$connection = $channel->pop();
|
||||||
if ($connection instanceof StopHeartbeatCheck) {
|
if ($connection instanceof StopHeartbeatCheck) {
|
||||||
|
|||||||
Reference in New Issue
Block a user