From c2ea048ee9d70357f3db2a26bd339266c72bef4b Mon Sep 17 00:00:00 2001 From: Guillaume Doisy Date: Fri, 27 Dec 2024 16:42:09 +0000 Subject: [PATCH] [retry_node] Refresh max_attempts_ in case it changed --- src/decorators/retry_node.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/decorators/retry_node.cpp b/src/decorators/retry_node.cpp index 81b2bb6ec..1a40247dd 100644 --- a/src/decorators/retry_node.cpp +++ b/src/decorators/retry_node.cpp @@ -67,6 +67,8 @@ NodeStatus RetryNode::tick() case NodeStatus::FAILURE: { try_count_++; + // Refresh max_attempts_ in case it changed in one of the child nodes + getInput(NUM_ATTEMPTS, max_attempts_); do_loop = try_count_ < max_attempts_ || max_attempts_ == -1; resetChild();