Commit 981accf8 authored by Ghislain MARY's avatar Ghislain MARY

Do not create an ICE check list if it has already been created.

parent bb805507
......@@ -248,7 +248,8 @@ static SalMediaDescription *_create_local_media_description(LinphoneCore *lc, Li
md->streams[i].crypto[1].algo = 0;
md->streams[i].crypto[2].algo = 0;
}
if ((call->dir == LinphoneCallOutgoing) && (linphone_core_get_firewall_policy(call->core) == LinphonePolicyUseIce) && (ice_session != NULL)){
if ((call->dir == LinphoneCallOutgoing) && (linphone_core_get_firewall_policy(call->core) == LinphonePolicyUseIce)
&& (ice_session != NULL) && (ice_session_check_list(ice_session, i) == NULL)) {
ice_session_add_check_list(ice_session, ice_check_list_new());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment