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

View File

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