fix crash: configure when lc is off

This commit is contained in:
Danmei Chen 2020-06-03 21:40:55 +02:00
parent f74a404252
commit c54948e334

View file

@ -589,8 +589,9 @@ static void linphone_iphone_global_state_changed(LinphoneCore *lc, LinphoneGloba
// dispatch the notification asynchronously
dispatch_async(dispatch_get_main_queue(), ^(void) {
if (theLinphoneCore && linphone_core_get_global_state(theLinphoneCore) != LinphoneGlobalOff)
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneGlobalStateUpdate object:self userInfo:dict];
});
});
}
- (void)globalStateChangedNotificationHandler:(NSNotification *)notif {