Skip to content

Commit 26e51c0

Browse files
author
AndyZe
committed
Parse for async nodes based on node name
1 parent 5f45a2c commit 26e51c0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/xml_parsing.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,11 @@ void VerifyXML(const std::string& xml_text,
546546
const std::string child_name = node->FirstChildElement()->Name();
547547
const auto child_search = registered_nodes.find(child_name);
548548
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") ||
551+
(child_name == "StatefulActionNode") ||
552+
(child_name == "CoroActionNode"))
553+
)
551554
{
552555
ThrowError(line_number,
553556
std::string("The first child of a ReactiveSequence cannot be asynchronous"));

0 commit comments

Comments
 (0)