LinphoneManager.m: instanciate in app manager only after linphone core initialization

This commit is contained in:
Gautier Pelloux-Prayer 2015-06-01 12:23:33 +02:00
parent c6960034f3
commit 54afa31e4d

View file

@ -295,8 +295,6 @@ struct codec_name_pref_table codec_pref_table[]={
#endif
}
_iapManager = [[InAppProductsManager alloc] init];
[self migrateFromUserPrefs];
}
return self;
@ -1399,6 +1397,8 @@ static BOOL libStarted = FALSE;
// create linphone core
[self createLinphoneCore];
_iapManager = [[InAppProductsManager alloc] init];
linphone_core_migrate_to_multi_transport(theLinphoneCore);
// init audio session (just getting the instance will init)