From 12d78b86035257653ebffb337c680e272dff8732 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 19 Jan 2016 12:38:27 +0100 Subject: [PATCH] assistant: do not reset liblinphonecore anymore since we support multiaccounts --- Classes/AssistantView.m | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Classes/AssistantView.m b/Classes/AssistantView.m index 89317afc5..583147c85 100644 --- a/Classes/AssistantView.m +++ b/Classes/AssistantView.m @@ -147,19 +147,6 @@ static UICompositeViewDescription *compositeDescription = nil; - (void)reset { [LinphoneManager.instance removeAllAccounts]; - [LinphoneManager.instance lpConfigSetBool:FALSE forKey:@"pushnotification_preference"]; - - LinphoneCore *lc = LC; - LCSipTransports transportValue = {5060, 5060, -1, -1}; - - if (linphone_core_set_sip_transports(lc, &transportValue)) { - LOGE(@"cannot set transport"); - } - - [LinphoneManager.instance lpConfigSetBool:FALSE forKey:@"ice_preference"]; - [LinphoneManager.instance lpConfigSetString:@"" forKey:@"stun_preference"]; - linphone_core_set_stun_server(lc, NULL); - linphone_core_set_firewall_policy(lc, LinphonePolicyNoFirewall); [self resetTextFields]; [self changeView:_welcomeView back:FALSE animation:FALSE]; _waitView.hidden = TRUE;