Update syncnodes command.
This commit is contained in:
parent
60363dd1f3
commit
eb5b086df3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user