Skip to content

Commit

Permalink
fix inverted error code for action client take
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Chapple <joncpl@gmail.com>
  • Loading branch information
joncppl committed Jun 3, 2022
1 parent 5ea392f commit 721c756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclpy/src/rclpy/_rclpy_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ rclpy_action_take_cancel_response(PyObject * Py_UNUSED(self), PyObject * args)
rcl_ret_t ret = rcl_action_take_ ## Type(action_client, taken_msg); \
if (ret != RCL_RET_OK) { \
destroy_ros_message(taken_msg); \
if (ret != RCL_RET_ACTION_CLIENT_TAKE_FAILED) { \
if (ret == RCL_RET_ACTION_CLIENT_TAKE_FAILED) { \
/* if take failed, just do nothing */ \
Py_RETURN_NONE; \
} \
Expand Down

0 comments on commit 721c756

Please sign in to comment.