Skip to content

Commit ccee397

Browse files
author
Mauro Passerino
committed
Fix TimersHeap::validate_and_lock()
1 parent 5c81264 commit ccee397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rclcpp/include/rclcpp/executors/timers_manager.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ class TimersManager
198198
bool any_timer_destroyed = false;
199199

200200
auto it = weak_heap_.begin();
201-
auto end = weak_heap_.end();
202-
while (it != end) {
201+
202+
while (it != weak_heap_.end()) {
203203
if (auto timer_shared_ptr = it->lock()) {
204204
// This timer is valid, add it to the vector
205205
locked_heap.push_back(std::move(timer_shared_ptr));

0 commit comments

Comments
 (0)