There was an error while loading. Please reload this page.
1 parent 5f45a2c commit 26e51c0Copy full SHA for 26e51c0
src/xml_parsing.cpp
@@ -546,8 +546,11 @@ void VerifyXML(const std::string& xml_text,
546
const std::string child_name = node->FirstChildElement()->Name();
547
const auto child_search = registered_nodes.find(child_name);
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)
+ if (child_type == NodeType::CONTROL &&
+ ((child_name == "ThreadedAction") ||
551
+ (child_name == "StatefulActionNode") ||
552
+ (child_name == "CoroActionNode"))
553
+ )
554
{
555
ThrowError(line_number,
556
std::string("The first child of a ReactiveSequence cannot be asynchronous"));
0 commit comments