mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2024-11-25 05:38:39 -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;
|
currentAddr = reflector->m_address;
|
||||||
currentPort = reflector->m_port;
|
currentPort = reflector->m_port;
|
||||||
|
|
||||||
|
inactivityTimer.start();
|
||||||
pollTimer.start();
|
pollTimer.start();
|
||||||
lostTimer.start();
|
lostTimer.start();
|
||||||
|
|
||||||
@ -282,6 +283,7 @@ void CP25Gateway::run()
|
|||||||
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
||||||
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
||||||
|
|
||||||
|
inactivityTimer.stop();
|
||||||
pollTimer.stop();
|
pollTimer.stop();
|
||||||
lostTimer.stop();
|
lostTimer.stop();
|
||||||
}
|
}
|
||||||
@ -305,6 +307,7 @@ void CP25Gateway::run()
|
|||||||
remoteNetwork.writePoll(currentAddr, currentPort);
|
remoteNetwork.writePoll(currentAddr, currentPort);
|
||||||
remoteNetwork.writePoll(currentAddr, currentPort);
|
remoteNetwork.writePoll(currentAddr, currentPort);
|
||||||
|
|
||||||
|
inactivityTimer.start();
|
||||||
pollTimer.start();
|
pollTimer.start();
|
||||||
lostTimer.start();
|
lostTimer.start();
|
||||||
}
|
}
|
||||||
@ -372,6 +375,7 @@ void CP25Gateway::run()
|
|||||||
currentId = 9999U;
|
currentId = 9999U;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inactivityTimer.stop();
|
||||||
lostTimer.stop();
|
lostTimer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user