From 3e168a79768085166b21e5872f6cc79aeb38e831 Mon Sep 17 00:00:00 2001 From: Alba Mendez Date: Tue, 28 Nov 2023 08:00:19 +0100 Subject: [PATCH] fix STUN keepalives --- src/RTPBundleTransport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RTPBundleTransport.cpp b/src/RTPBundleTransport.cpp index 8e7ffe427..3204c8fef 100644 --- a/src/RTPBundleTransport.cpp +++ b/src/RTPBundleTransport.cpp @@ -863,7 +863,7 @@ void RTPBundleTransport::onTimer(std::chrono::milliseconds now) //Fire the timer again for timing out the transaction iceTimer->Again(ts + iceTimeout - now); //Done - return; + break; } //Get username and remote address of ice candidate auto& [username,remote] = it->second; @@ -873,7 +873,7 @@ void RTPBundleTransport::onTimer(std::chrono::milliseconds now) //If not found if (cconnectionIterator==connections.end()) - break; + continue; //Get ice connection auto connection = cconnectionIterator->second; @@ -883,7 +883,7 @@ void RTPBundleTransport::onTimer(std::chrono::milliseconds now) //Check we have it if (candidateIterator==candidates.end()) - break; + continue; //Get it ICERemoteCandidate* candidate = &candidateIterator->second;