From c74fa94eab34ff684502a84c0ac07fb3934e2163 Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Tue, 22 Nov 2022 11:10:30 +0100 Subject: [PATCH] fix issue #413 (Delay logic) --- src/decorators/delay_node.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/decorators/delay_node.cpp b/src/decorators/delay_node.cpp index a1dc8bc25..9d95c883a 100644 --- a/src/decorators/delay_node.cpp +++ b/src/decorators/delay_node.cpp @@ -63,9 +63,12 @@ NodeStatus DelayNode::tick() } else if (delay_complete_) { - delay_started_ = false; - delay_aborted_ = false; auto child_status = child()->executeTick(); + if(child_status != NodeStatus::RUNNING) + { + delay_started_ = false; + delay_aborted_ = false; + } return child_status; } else