Update syncnodes command.
This commit is contained in:
parent
60363dd1f3
commit
eb5b086df3
@ -724,13 +724,8 @@ namespace Components
|
|||||||
|
|
||||||
Command::Add("syncnodes", [] (Command::Params params)
|
Command::Add("syncnodes", [] (Command::Params params)
|
||||||
{
|
{
|
||||||
Logger::Print("Resetting node states...\n");
|
Logger::Print("Synchronizing nodes...\n");
|
||||||
|
Node::SyncNodeList();
|
||||||
for (auto &node : Node::Nodes)
|
|
||||||
{
|
|
||||||
node.state = Node::STATE_UNKNOWN;
|
|
||||||
node.registered = false;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Install frame handlers
|
// Install frame handlers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user