From 91c35166d5a79ec7b9f55cd900f4fdc792cc4958 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Fri, 10 Apr 2020 13:54:22 +0100 Subject: [PATCH] Stop the timeout if the timer isn't running. --- NXDNGateway/KenwoodNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NXDNGateway/KenwoodNetwork.cpp b/NXDNGateway/KenwoodNetwork.cpp index 96187dc..6149c4f 100644 --- a/NXDNGateway/KenwoodNetwork.cpp +++ b/NXDNGateway/KenwoodNetwork.cpp @@ -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(); }