From 135da62762a562984963270b04a1c0a010be3f6b Mon Sep 17 00:00:00 2001 From: Hugo Tunius Date: Thu, 24 Oct 2024 10:57:13 +0100 Subject: [PATCH] Tweak log and copy order --- src/ice/agent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ice/agent.rs b/src/ice/agent.rs index 6c8be4bd..1e8ba515 100644 --- a/src/ice/agent.rs +++ b/src/ice/agent.rs @@ -748,13 +748,13 @@ impl IceAgent { ); } else { // replace the existing candidate pair, since the new one got a higher prio. + pair.copy_nominated_and_success_state(&self.candidate_pairs[check_idx]); + debug!( "Replace redundant pair, current: {:?} replaced with: {:?}", check, pair ); - pair.copy_nominated_and_success_state(&self.candidate_pairs[check_idx]); - if self.ice_lite { debug!("Retain incoming binding requests for pair"); pair.copy_remote_binding_requests(&self.candidate_pairs[check_idx]);