Skip to content

Commit b2e8b64

Browse files
committed
Fix EventsExecutor timers not being properly refreshed
1 parent d71bc54 commit b2e8b64

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
@@ -430,6 +430,8 @@ EventsExecutor::refresh_current_collection(
430430
// Acquire lock before modifying the current collection
431431
std::lock_guard<std::recursive_mutex> lock(collection_mutex_);
432432

433+
current_entities_collection_->remove_expired_entities();
434+
433435
current_entities_collection_->timers.update(
434436
new_collection.timers,
435437
[this](rclcpp::TimerBase::SharedPtr timer) {timers_manager_->add_timer(timer);},

0 commit comments

Comments
 (0)