Skip to content
Snippets Groups Projects
Unverified Commit 7544f1ad authored by Mohammad Haghighipanah's avatar Mohammad Haghighipanah Committed by GitHub
Browse files

Halt method in the recovery node is not being called after successfull navigation (#1189)

* fixed issue 1179
parent 58476591
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ BT::NodeStatus RecoveryNode::tick()
case BT::NodeStatus::SUCCESS:
{
retry_count_ = 0;
halt();
return BT::NodeStatus::SUCCESS;
}
break;
......@@ -91,6 +92,7 @@ BT::NodeStatus RecoveryNode::tick()
{
current_child_idx_--;
retry_count_ = 0;
halt();
return BT::NodeStatus::FAILURE;
}
break;
......@@ -108,6 +110,7 @@ BT::NodeStatus RecoveryNode::tick()
}
} // end while loop
retry_count_ = 0;
halt();
return BT::NodeStatus::FAILURE;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment