Let the lib handle socket when bg

This commit is contained in:
Benjamin Reis 2017-01-02 17:05:44 +01:00
parent eaaa8d013f
commit 29ca0fc15d

View file

@ -52,10 +52,6 @@
- (void)applicationDidEnterBackground:(UIApplication *)application {
LOGI(@"%@", NSStringFromSelector(_cmd));
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max && (linphone_core_get_calls_nb(LC) == 0)) {
linphone_core_set_network_reachable(LC, FALSE);
LinphoneManager.instance.connectivity = none;
}
[LinphoneManager.instance enterBackgroundMode];
}