forked from mirrors/linphone-iphone
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
85bb79ce87
commit
a3665c6af2
1 changed files with 5 additions and 2 deletions
|
|
@ -1556,8 +1556,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