mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
LinphoneManager.m: do not erase core in shutdown
This commit is contained in:
parent
81bd7e564c
commit
481988084e
1 changed files with 4 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue