Add missing inactivty stops and starts.

This commit is contained in:
Jonathan Naylor 2017-03-18 07:16:07 +00:00
parent 1225e0bc87
commit 052c3f76c1

View File

@ -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();
}