Skip to content

Commit

Permalink
Merge pull request #40 from umdlife/hotfix/add-timeout-on-spin
Browse files Browse the repository at this point in the history
Add timeout on spin to avoid infinite loop
  • Loading branch information
facontidavide authored Dec 4, 2023
2 parents d701cc8 + dacf3a9 commit ff73f8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ template<class T> inline
prev_action_name_.c_str());
}

if (callback_group_executor_.spin_until_future_complete(future_result) !=
if (callback_group_executor_.spin_until_future_complete(future_result, server_timeout_) !=
rclcpp::FutureReturnCode::SUCCESS)
{
RCLCPP_ERROR( node_->get_logger(), "Failed to get result call failed :( for [%s]",
Expand Down

0 comments on commit ff73f8e

Please sign in to comment.