Skip to content

Commit 5574355

Browse files
committed
Fix to refresh timers after object reinitialization
1 parent 443b777 commit 5574355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rclcpp/src/rclcpp/experimental/executors/events_executor/events_executor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ EventsExecutor::refresh_current_collection(
433433
// Acquire lock before modifying the current collection
434434
std::lock_guard<std::recursive_mutex> lock(collection_mutex_);
435435

436+
current_entities_collection_->remove_expired_entities();
437+
436438
current_entities_collection_->timers.update(
437439
new_collection.timers,
438440
[this](rclcpp::TimerBase::SharedPtr timer) {timers_manager_->add_timer(timer);},

0 commit comments

Comments
 (0)