From b69d850c8e58a96adfce0ddae440897c7bf52a58 Mon Sep 17 00:00:00 2001 From: howard-stearns Date: Thu, 13 Jun 2019 19:41:12 -0700 Subject: [PATCH] move constant to the comment that will use it --- libraries/networking/src/NodeList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/networking/src/NodeList.cpp b/libraries/networking/src/NodeList.cpp index 182ef3b578..be63956191 100644 --- a/libraries/networking/src/NodeList.cpp +++ b/libraries/networking/src/NodeList.cpp @@ -451,9 +451,9 @@ void NodeList::sendDomainServerCheckIn() { // Send duplicate check-ins in the exponentially increasing sequence 1, 1, 2, 4, ... static const int MAX_CHECKINS_TOGETHER = 20; - static const int WARNING_CHECKIN_COUNT = 2; int outstandingCheckins = _domainHandler.getCheckInPacketsSinceLastReply(); /* + static const int WARNING_CHECKIN_COUNT = 2; if (outstandingCheckins > WARNING_CHECKIN_COUNT) { // We may be headed for a disconnect, as we've written two DomainListRequests without getting anything back. // In some cases, we've found that nothing is going out on the wire despite not getting any errors from