diff --git a/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp b/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp index 636f24415c..c1970e38b1 100644 --- a/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp +++ b/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp @@ -166,7 +166,7 @@ class BtServiceNode : public BT::ActionNodeBase auto timeout = remaining > bt_loop_duration_ ? bt_loop_duration_ : remaining; rclcpp::FutureReturnCode rc; - rc = callback_group_executor_.spin_until_future_complete(future_result_, server_timeout_); + rc = callback_group_executor_.spin_until_future_complete(future_result_, timeout); if (rc == rclcpp::FutureReturnCode::SUCCESS) { request_sent_ = false; BT::NodeStatus status = on_completion(future_result_.get());