From 052c3f76c1833033301213470ca06de68b570ae6 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sat, 18 Mar 2017 07:16:07 +0000 Subject: [PATCH] Add missing inactivty stops and starts. --- P25Gateway/P25Gateway.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/P25Gateway/P25Gateway.cpp b/P25Gateway/P25Gateway.cpp index 435161e..3c895ec 100644 --- a/P25Gateway/P25Gateway.cpp +++ b/P25Gateway/P25Gateway.cpp @@ -214,6 +214,7 @@ void CP25Gateway::run() currentAddr = reflector->m_address; currentPort = reflector->m_port; + inactivityTimer.start(); pollTimer.start(); lostTimer.start(); @@ -282,6 +283,7 @@ void CP25Gateway::run() remoteNetwork.writeUnlink(currentAddr, currentPort); remoteNetwork.writeUnlink(currentAddr, currentPort); + inactivityTimer.stop(); pollTimer.stop(); lostTimer.stop(); } @@ -305,6 +307,7 @@ void CP25Gateway::run() remoteNetwork.writePoll(currentAddr, currentPort); remoteNetwork.writePoll(currentAddr, currentPort); + inactivityTimer.start(); pollTimer.start(); lostTimer.start(); } @@ -372,6 +375,7 @@ void CP25Gateway::run() currentId = 9999U; } + inactivityTimer.stop(); lostTimer.stop(); }