Skip to content

Commit

Permalink
Fix actions feedback race
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Passerino committed Aug 23, 2024
1 parent 7b44b4c commit 9bc4a4b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions rclcpp_action/src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,16 +355,6 @@ ClientBase::is_ready(rcl_wait_set_t * wait_set)

pimpl_->next_ready_event = ClientBaseImpl::NO_EVENT_READY;

if (is_feedback_ready) {
pimpl_->next_ready_event = static_cast<size_t>(EntityType::FeedbackSubscription);
return true;
}

if (is_status_ready) {
pimpl_->next_ready_event = static_cast<size_t>(EntityType::StatusSubscription);
return true;
}

if (is_goal_response_ready) {
pimpl_->next_ready_event = static_cast<size_t>(EntityType::GoalClient);
return true;
Expand All @@ -380,6 +370,16 @@ ClientBase::is_ready(rcl_wait_set_t * wait_set)
return true;
}

if (is_feedback_ready) {
pimpl_->next_ready_event = static_cast<size_t>(EntityType::FeedbackSubscription);
return true;
}

if (is_status_ready) {
pimpl_->next_ready_event = static_cast<size_t>(EntityType::StatusSubscription);
return true;
}

return false;
}

Expand Down

0 comments on commit 9bc4a4b

Please sign in to comment.