We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14c882d commit 836946eCopy full SHA for 836946e
rclcpp/include/rclcpp/wait_result.hpp
@@ -276,11 +276,11 @@ class WaitResult final
276
auto & wait_set = this->get_wait_set();
277
auto rcl_wait_set = wait_set.get_rcl_wait_set();
278
while (next_waitable_index_ < wait_set.size_of_waitables()) {
279
- auto cur_waitable = wait_set.waitables(next_waitable_index_);
+ auto cur_waitable = wait_set.waitables(next_waitable_index_++);
280
if (cur_waitable != nullptr && cur_waitable->is_ready(&rcl_wait_set)) {
281
waitable = cur_waitable;
282
+ break;
283
}
- next_waitable_index_++;
284
285
286
0 commit comments