File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -541,16 +541,17 @@ void VerifyXML(const std::string& xml_text,
541
541
ThrowError (line_number,
542
542
std::string (" The node <" ) + name + " > must have 1 or more children" );
543
543
}
544
- if (name == " ReactiveSequence" )
544
+ if (name == " ReactiveSequence" )
545
545
{
546
546
const std::string child_name = node->FirstChildElement ()->Name ();
547
547
const auto child_search = registered_nodes.find (child_name);
548
548
auto child_type = child_search->second ;
549
- // TODO: what this really needs to check is if the child is async
550
- if (child_type != NodeType::CONDITION)
549
+ if (child_type == NodeType::CONTROL &&
550
+ ((child_name == " ThreadedAction" ) || (child_name == " StatefulActionNode" ) ||
551
+ (child_name == " CoroActionNode" )))
551
552
{
552
- ThrowError (line_number,
553
- std::string ( " The first child of a ReactiveSequence cannot be asynchronous" ));
553
+ ThrowError (line_number, std::string ( " The first child of a ReactiveSequence "
554
+ " cannot be asynchronous" ));
554
555
}
555
556
}
556
557
}
You can’t perform that action at this time.
0 commit comments