forked from mirrors/linphone-iphone
fix crash: enter background mode when linphonecore off
This commit is contained in:
parent
506d7b3703
commit
5cf6db0dd9
1 changed files with 5 additions and 3 deletions
|
|
@ -57,9 +57,11 @@
|
|||
|
||||
- (void)applicationDidEnterBackground:(UIApplication *)application {
|
||||
LOGI(@"%@", NSStringFromSelector(_cmd));
|
||||
[LinphoneManager.instance enterBackgroundMode];
|
||||
[LinphoneManager.instance.fastAddressBook clearFriends];
|
||||
[CoreManager.instance stopLinphoneCore];
|
||||
if (linphone_core_get_global_state(LC) != LinphoneGlobalOff) {
|
||||
[LinphoneManager.instance enterBackgroundMode];
|
||||
[LinphoneManager.instance.fastAddressBook clearFriends];
|
||||
[CoreManager.instance stopLinphoneCore];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue