Revert "fix crash when stop lc too early"

This reverts commit 8d54620295.
This commit is contained in:
Danmei Chen 2020-05-25 11:56:13 +02:00
parent 6ad10719a4
commit 69a11ef639

View file

@ -81,11 +81,9 @@
linphone_call_enable_camera(call, false);
}
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];
});
[LinphoneManager.instance enterBackgroundMode];
[LinphoneManager.instance.fastAddressBook clearFriends];
[CoreManager.instance stopLinphoneCore];
}
- (void)applicationDidBecomeActive:(UIApplication *)application {