Stop the timeout if the timer isn't running.

This commit is contained in:
Jonathan Naylor 2020-04-10 13:54:22 +01:00
parent 2ce25c2d7c
commit 91c35166d5
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ void CKenwoodNetwork::close()
void CKenwoodNetwork::clock(unsigned int ms)
{
m_timer.clock(ms);
if (m_timer.hasExpired()) {
if (m_timer.isRunning() && m_timer.hasExpired()) {
writeRTCPPing();
m_timer.start();
}