forked from mirrors/linphone-iphone
Don't destroy/create linphone core in reloadcertificates if linphone core doesn't exist
This commit is contained in:
parent
e622686b14
commit
b3265bb3fd
1 changed files with 4 additions and 2 deletions
|
|
@ -285,8 +285,10 @@ static NSString *const CONFIGURATION_HOME_AP_KEY = @"CONFIGURATION_HOME_AP_KEY";
|
|||
}
|
||||
|
||||
- (void)reloadCertificates {
|
||||
[[LinphoneManager instance] destroyLibLinphone];
|
||||
[[LinphoneManager instance] startLibLinphone];
|
||||
if ([LinphoneManager isLcReady]) {
|
||||
[[LinphoneManager instance] destroyLibLinphone];
|
||||
[[LinphoneManager instance] startLibLinphone];
|
||||
}
|
||||
[self unloadCertificates];
|
||||
[self loadCertificates];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue