From e10d855140b16de42e08a740157a4dc202e26120 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 2 Nov 2020 11:37:18 +0000 Subject: [PATCH] Fix current TG display. --- NXDNGateway/NXDNGateway.cpp | 4 ++-- NXDNGateway/Version.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NXDNGateway/NXDNGateway.cpp b/NXDNGateway/NXDNGateway.cpp index 777f7ca..cc89c3a 100644 --- a/NXDNGateway/NXDNGateway.cpp +++ b/NXDNGateway/NXDNGateway.cpp @@ -557,8 +557,6 @@ void CNXDNGateway::run() hangTimer.clock(ms); if (hangTimer.isRunning() && hangTimer.hasExpired()) { - currentTG = 0U; - if (currentAddrLen > 0U) { LogMessage("Unlinking from %u due to inactivity", currentTG); @@ -575,6 +573,8 @@ void CNXDNGateway::run() hangTimer.stop(); } + + currentTG = 0U; } pollTimer.clock(ms); diff --git a/NXDNGateway/Version.h b/NXDNGateway/Version.h index 8a542ec..3118d15 100644 --- a/NXDNGateway/Version.h +++ b/NXDNGateway/Version.h @@ -19,6 +19,6 @@ #if !defined(VERSION_H) #define VERSION_H -const char* VERSION = "20201101"; +const char* VERSION = "20201102"; #endif