mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 01:39:20 +00:00
Fixes possible crash in "Call with in-dialog very early call request" test
This commit is contained in:
parent
b9683cd408
commit
6e9e1bbed8
1 changed files with 5 additions and 3 deletions
|
|
@ -4288,10 +4288,12 @@ static void call_with_very_early_call_update(void) {
|
|||
BC_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallStreamsRunning,1));
|
||||
}
|
||||
|
||||
if(linphone_core_get_current_call(pauline->lc)) {
|
||||
params=linphone_core_create_call_params(pauline->lc,linphone_core_get_current_call(pauline->lc));
|
||||
linphone_core_update_call(pauline->lc,linphone_core_get_current_call(pauline->lc),params);
|
||||
linphone_call_params_destroy(params);
|
||||
}
|
||||
|
||||
params=linphone_core_create_call_params(pauline->lc,linphone_core_get_current_call(pauline->lc));
|
||||
linphone_core_update_call(pauline->lc,linphone_core_get_current_call(pauline->lc),params);
|
||||
linphone_call_params_destroy(params);
|
||||
BC_ASSERT_TRUE(wait_for(marie->lc,pauline->lc,&pauline->stat.number_of_LinphoneCallUpdating,1));
|
||||
BC_ASSERT_TRUE(wait_for(marie->lc,pauline->lc,&marie->stat.number_of_LinphoneCallUpdatedByRemote,1));
|
||||
BC_ASSERT_TRUE(wait_for(marie->lc,pauline->lc,&pauline->stat.number_of_LinphoneCallStreamsRunning,2));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue