Skip to content

Commit c74fa94

Browse files
committed
fix issue #413 (Delay logic)
1 parent 89769b5 commit c74fa94

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/decorators/delay_node.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ NodeStatus DelayNode::tick()
6363
}
6464
else if (delay_complete_)
6565
{
66-
delay_started_ = false;
67-
delay_aborted_ = false;
6866
auto child_status = child()->executeTick();
67+
if(child_status != NodeStatus::RUNNING)
68+
{
69+
delay_started_ = false;
70+
delay_aborted_ = false;
71+
}
6972
return child_status;
7073
}
7174
else

0 commit comments

Comments
 (0)