From 481988084e821b4bbe4152c48665758a3744eb1f Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 26 Jan 2016 15:49:37 +0100 Subject: [PATCH] LinphoneManager.m: do not erase core in shutdown --- Classes/LinphoneManager.m | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 4b1a80d08..dd912378c 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -781,14 +781,10 @@ static void linphone_iphone_global_state_changed(LinphoneCore *lc, LinphoneGloba dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:state], @"state", [NSString stringWithUTF8String:message ? message : ""], @"message", nil]; - if (state == LinphoneGlobalShutdown) { - theLinphoneCore = nil; - } else { - // dispatch the notification asynchronously - dispatch_async(dispatch_get_main_queue(), ^(void) { - [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneGlobalStateUpdate object:self userInfo:dict]; - }); - } + // dispatch the notification asynchronously + dispatch_async(dispatch_get_main_queue(), ^(void) { + [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneGlobalStateUpdate object:self userInfo:dict]; + }); } - (void)globalStateChangedNotificationHandler:(NSNotification *)notif {