diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 3e58f72df..d4a5e3fd7 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -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 {