mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Stop the core when app is terminated to make sure the Main Core doesn't stay in Shutdown state, which would block the App Extension when receiving push notifications
This commit is contained in:
parent
fd566c5a01
commit
6e398ffb3a
1 changed files with 5 additions and 2 deletions
|
|
@ -1569,8 +1569,11 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat
|
|||
[ftd stopAndDestroyAndRemove:FALSE];
|
||||
}
|
||||
[_fileTransferDelegates removeAllObjects];
|
||||
|
||||
linphone_core_destroy(theLinphoneCore);
|
||||
|
||||
if (linphone_core_get_global_state(LC) != LinphoneGlobalOff) {
|
||||
linphone_core_stop(LC);
|
||||
}
|
||||
linphone_core_unref(theLinphoneCore);
|
||||
LOGI(@"Destroy linphonecore %p", theLinphoneCore);
|
||||
theLinphoneCore = nil;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue