mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2024-11-10 06:25:31 -05:00
Add missing inactivty stops and starts.
This commit is contained in:
parent
1225e0bc87
commit
052c3f76c1
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user