Verify if linphonecore is already create before a create new one

This commit is contained in:
Yann Diorcet 2012-11-21 14:06:27 +01:00
parent 1d4bed91f7
commit c007dd9f4b

View file

@ -738,6 +738,10 @@ static LinphoneCoreVTable linphonec_vtable = {
}
- (void)startLibLinphone {
if (theLinphoneCore != nil) {
[LinphoneLogger logc:LinphoneLoggerLog format:"linphonecore is already created"];
return;
}
//get default config from bundle
NSString* factoryConfig = [LinphoneManager bundleFile:[LinphoneManager runningOnIpad]?@"linphonerc-factory~ipad":@"linphonerc-factory"];