Skip to content

Commit dacf3a9

Browse files
author
vicmassy
committed
Add timeout to spin to avoid infinite loop
1 parent b8ee381 commit dacf3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ template<class T> inline
437437
prev_action_name_.c_str());
438438
}
439439

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

0 commit comments

Comments
 (0)