Signed-off-by: Kentaro Tanaka <spiralray@gmail.com> (cherry picked from commit eae50c9ed16c0b2fa4c7ca2c92bb8c30d5f6836f) Co-authored-by: spiralray <spiralray@users.noreply.github.com>
This commit is contained in:
parent
131ab43a32
commit
73126fe7ad
1 changed files with 1 additions and 1 deletions
|
@ -602,7 +602,7 @@ rcl_action_expire_goals(
|
||||||
int64_t goal_time;
|
int64_t goal_time;
|
||||||
size_t num_goal_handles = action_server->impl->num_goal_handles;
|
size_t num_goal_handles = action_server->impl->num_goal_handles;
|
||||||
for (size_t i = 0u; i < num_goal_handles; ++i) {
|
for (size_t i = 0u; i < num_goal_handles; ++i) {
|
||||||
if (output_expired && i >= expired_goals_capacity) {
|
if (output_expired && num_goals_expired >= expired_goals_capacity) {
|
||||||
// no more space to output expired goals, so stop expiring them
|
// no more space to output expired goals, so stop expiring them
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue