From e4a9e429e0e0af5ef6736c473a3616f918bf59d3 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 20 Jan 2015 15:48:38 -0800 Subject: [PATCH] reset NodeList if there is domain silence --- gvr-interface/src/Client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gvr-interface/src/Client.cpp b/gvr-interface/src/Client.cpp index fe7c3afc2d..1f2f1dbc64 100644 --- a/gvr-interface/src/Client.cpp +++ b/gvr-interface/src/Client.cpp @@ -40,6 +40,10 @@ void Client::setupNetworking() { // TODO: once the Client knows its Address on start-up we should be able to immediately send a check in here domainCheckInTimer->start(); + + // handle the case where the domain stops talking to us + // TODO: can we just have the nodelist do this when it sets up? Is there a user of the NodeList that wouldn't want this? + connect(nodeList.data(), &NodeList::limitOfSilentDomainCheckInsReached, nodeList.data(), &NodeList::reset); } void Client::processDatagrams() {