Closed jmachowinski closed 2 months ago
Hey
https://github.com/ros2/rclcpp/blob/f9c4894f96ea083fc5acfcea4f1ea83850759e63/rclcpp/src/rclcpp/executor.cpp#L692
I am highly confused by this code block:
auto callback_group = entity_iter->second.callback_group.lock(); if (callback_group && !callback_group->can_be_taken_from()) { continue; }
Shouldn't it be ?
auto callback_group = entity_iter->second.callback_group.lock(); if (!callback_group || !callback_group->can_be_taken_from()) { continue; }
@wjwwood @mjcarroll this was changed in #2142
You are correct, and the ones that follow are also incorrect, I will patch.
Good catch!
fixed
Hey
https://github.com/ros2/rclcpp/blob/f9c4894f96ea083fc5acfcea4f1ea83850759e63/rclcpp/src/rclcpp/executor.cpp#L692
I am highly confused by this code block:
Shouldn't it be ?