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 {