Skip to content

Commit a4a5493

Browse files
committed
Bugfix: update for loop condition
1 parent 3858317 commit a4a5493

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rclcpp/include/rclcpp/strategies/allocator_memory_strategy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class AllocatorMemoryStrategy : public memory_strategy::MemoryStrategy
118118
timer_handles_[i].reset();
119119
}
120120
}
121-
for (size_t i = 0; i < timer_handles_.size(); ++i) {
121+
for (size_t i = 0; i < waitable_handles_.size(); ++i) {
122122
if (!waitable_handles_[i]->is_ready(wait_set)) {
123123
waitable_handles_[i].reset();
124124
}

0 commit comments

Comments
 (0)