mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 09:49:26 +00:00
Remove all linphone_call_ref/unref() off conference server simulator code
This commit is contained in:
parent
993b97dd94
commit
8607cd54df
1 changed files with 1 additions and 2 deletions
|
|
@ -721,14 +721,13 @@ static void linphone_conference_server_call_state_changed(LinphoneCore *lc, Linp
|
|||
if(linphone_call_get_conference(call) == NULL) {
|
||||
linphone_core_add_to_conference(lc, call);
|
||||
linphone_core_leave_conference(lc);
|
||||
if(conf_srv->first_call == NULL) conf_srv->first_call = linphone_call_ref(call);
|
||||
if(conf_srv->first_call == NULL) conf_srv->first_call = call;
|
||||
}
|
||||
break;
|
||||
|
||||
case LinphoneCallEnd:
|
||||
if(call == conf_srv->first_call) {
|
||||
linphone_core_terminate_conference(lc);
|
||||
linphone_call_unref(call);
|
||||
conf_srv->first_call = NULL;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue