Fix threading issue on iOS9

This commit is contained in:
Sebastián Katzer 2017-01-30 09:19:15 +01:00
parent 18fc64fddb
commit 891fa51cb2

View File

@ -50,12 +50,10 @@ NSString* const kAPPBackgroundEventDeactivate = @"deactivate";
*/
- (void) pluginInitialize
{
[self.commandDelegate runInBackground:^{
enabled = [self.class isRunningWebKit];
[self configureAudioPlayer];
[self configureAudioSession];
[self observeLifeCycle];
}];
enabled = [self.class isRunningWebKit];
[self configureAudioPlayer];
[self configureAudioSession];
[self observeLifeCycle];
}
/**