From 6561d1ad9fa4ce0f184ca1a4632ebf9944313734 Mon Sep 17 00:00:00 2001 From: "Marius Petrescu, YO2LOJ" Date: Tue, 2 Jul 2019 20:57:35 +0300 Subject: [PATCH] Handle terminal IP changes - bugfix of bugfix --- src/cg3protocol.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cg3protocol.cpp b/src/cg3protocol.cpp index 0dfc383..69c6327 100644 --- a/src/cg3protocol.cpp +++ b/src/cg3protocol.cpp @@ -201,6 +201,8 @@ void CG3Protocol::PresenceTask(void) if (extant == NULL) { + index = -1; + // do we already have a client with the same call (IP changed)? while ( (extant = clients->FindNextClient(PROTOCOL_G3, &index)) != NULL ) { @@ -222,7 +224,6 @@ void CG3Protocol::PresenceTask(void) } else { - index = -1; // client changed callsign if (!extant->GetCallsign().HasSameCallsign(Terminal)) {