Skip to content

Commit

Permalink
fix issue #413 (Delay logic)
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Nov 22, 2022
1 parent 89769b5 commit c74fa94
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/decorators/delay_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c74fa94

Please sign in to comment.