From 9a5bff686756419f6a0f65fca5e4c9afb053c679 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 6 Mar 2016 15:27:13 +0100 Subject: [PATCH] Update syncnodes command again :P --- src/Components/Modules/Node.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Node.cpp b/src/Components/Modules/Node.cpp index bbebc9f3..9bfdc816 100644 --- a/src/Components/Modules/Node.cpp +++ b/src/Components/Modules/Node.cpp @@ -724,8 +724,15 @@ namespace Components Command::Add("syncnodes", [] (Command::Params params) { - Logger::Print("Synchronizing nodes...\n"); - Node::SyncNodeList(); + Logger::Print("Re-Synchronizing nodes...\n"); + + for (auto& node : Node::Nodes) + { + node.state = Node::STATE_UNKNOWN; + node.registered = false; + node.lastTime = 0; + node.lastListQuery = 0; + } }); // Install frame handlers