Update syncnodes command.

This commit is contained in:
momo5502 2016-03-06 15:18:32 +01:00
parent 60363dd1f3
commit eb5b086df3

View File

@ -724,13 +724,8 @@ namespace Components
Command::Add("syncnodes", [] (Command::Params params)
{
Logger::Print("Resetting node states...\n");
for (auto &node : Node::Nodes)
{
node.state = Node::STATE_UNKNOWN;
node.registered = false;
}
Logger::Print("Synchronizing nodes...\n");
Node::SyncNodeList();
});
// Install frame handlers