Don't destroy/create linphone core in reloadcertificates if linphone core doesn't exist

This commit is contained in:
Yann Diorcet 2012-11-21 14:07:22 +01:00
parent e622686b14
commit b3265bb3fd

View file

@ -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];
}