From d590a62febdd4d9eef920df38626e02ae661c153 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 12 Oct 2026 16:41:19 +0200 Subject: [PATCH] MT#66271 ice init: refactor the func body a bit Just squash passthrough with the !ice flag check, because essentially doing exactly the same logic. Change-Id: Ie34b41d52e7128b0fc361a6ad6483c07a0970700 --- daemon/call.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index 1491dcb15..294346664 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2222,12 +2222,8 @@ static void __dtls_logic(const sdp_ng_flags *flags, static void __ice_init(struct call_media *media) { - if (MEDIA_ISSET(media, PASSTHRU)) { - ice_shutdown(&media->ice_agent); - return; - } - if (!MEDIA_ISSET(media, ICE)) { - /* not doing ICE anymore with this peer, + if (!MEDIA_ISSET(media, ICE) || MEDIA_ISSET(media, PASSTHRU)) { + /* for the ice part: not doing ICE anymore with this peer, * discard this agent, so that ice offered again later starts afresh */ ice_shutdown(&media->ice_agent); return;