From 5a5caf95dccbf59e0f212de47aa347ea4e3147ed Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 15 Nov 2022 10:59:05 -0500 Subject: [PATCH] MT#55283 remove reciprocal subscriptions During offer/answer, we remove existing subscriptions before re-establishing the new set of subscriptions. But we must also remove the subscriptions of previous subscribers in order to keep the lists of subscriptions and subscribers correctly reciprocal. Change-Id: I7d39fa59892159f41033ae6a40e7cb51d861b12e --- daemon/call.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 91c0cb1f9..86f4c8133 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -3015,7 +3015,9 @@ static void __unsubscribe_all_offer_answer_subscribers(struct call_monologue *ml continue; } GList *next = l->next; - __unsubscribe_one(cs->monologue, ml); + struct call_monologue *other_ml = cs->monologue; + __unsubscribe_one(other_ml, ml); + __unsubscribe_one(ml, other_ml); l = next; } }