Skip to content

Commit 5a2b5dc

Browse files
committed
action cancel fixed
1 parent e6d9bb2 commit 5a2b5dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simple_node/include/simple_node/actions/action_client.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ class ActionClient : public rclcpp_action::Client<ActionT> {
9797
this->async_cancel_goal(this->goal_handle,
9898
std::bind(&ActionClient::cancel_done, this));
9999

100-
std::unique_lock<std::mutex> lock(this->action_done_mutex);
101-
this->action_done_cond.wait(lock);
100+
std::unique_lock<std::mutex> lock(this->cancel_done_mutex);
101+
this->cancel_done_cond.wait(lock);
102102
}
103103
}
104104

@@ -168,7 +168,7 @@ class ActionClient : public rclcpp_action::Client<ActionT> {
168168
this->action_done_cond.notify_one();
169169
}
170170

171-
void cancel_done() { this->action_done_cond.notify_all(); }
171+
void cancel_done() { this->cancel_done_cond.notify_all(); }
172172
};
173173

174174
} // namespace actions

0 commit comments

Comments
 (0)