Update syncnodes command again :P

This commit is contained in:
momo5502 2016-03-06 15:27:13 +01:00
parent eb5b086df3
commit 9a5bff6867

View File

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