From 9c6b9bdb61bc380af0b804e7fd0a2989f5d3af7a Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sun, 3 May 2020 18:20:29 +0100 Subject: [PATCH] Code cleanups. --- P25Gateway/P25Gateway.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/P25Gateway/P25Gateway.cpp b/P25Gateway/P25Gateway.cpp index 8c8b8fe..187ff15 100644 --- a/P25Gateway/P25Gateway.cpp +++ b/P25Gateway/P25Gateway.cpp @@ -397,8 +397,7 @@ void CP25Gateway::run() lostTimer.stop(); currentId = 9999U; - } - else if (reflector != NULL && currentId == 9999U) { + } else if (reflector != NULL && currentId == 9999U) { currentId = tg; currentAddr = reflector->m_address; currentPort = reflector->m_port; @@ -415,8 +414,7 @@ void CP25Gateway::run() inactivityTimer.start(); pollTimer.start(); lostTimer.start(); - } - else if (reflector != NULL && currentId != 9999U) { + } else if (reflector != NULL && currentId != 9999U) { LogMessage("Unlinked from reflector %u by remote command", currentId); remoteNetwork.writeUnlink(currentAddr, currentPort); @@ -440,8 +438,7 @@ void CP25Gateway::run() pollTimer.start(); lostTimer.start(); } - } - else { + } else { CUtils::dump("Invalid remote command received", buffer, res); } }