mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
fix crash when stop lc too early
This commit is contained in:
parent
3e191259aa
commit
8d54620295
1 changed files with 5 additions and 3 deletions
|
|
@ -81,9 +81,11 @@
|
|||
linphone_call_enable_camera(call, false);
|
||||
}
|
||||
|
||||
[LinphoneManager.instance enterBackgroundMode];
|
||||
[LinphoneManager.instance.fastAddressBook clearFriends];
|
||||
[CoreManager.instance stopLinphoneCore];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[LinphoneManager.instance enterBackgroundMode];
|
||||
[LinphoneManager.instance.fastAddressBook clearFriends];
|
||||
[CoreManager.instance stopLinphoneCore];
|
||||
});
|
||||
}
|
||||
|
||||
- (void)applicationDidBecomeActive:(UIApplication *)application {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue