This commit is contained in:
2021-08-17 19:04:44 +08:00
parent cfd8f6fa94
commit e77a66700d
3 changed files with 19 additions and 4 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ class Pool extends Component
}
while ($channel->length() > $retain_number) {
$connection = $channel->pop();
if ($connection) {
unset($connection);
if ($connection instanceof StopHeartbeatCheck) {
$connection->stopHeartbeatCheck();
}
}
}