From 891fa51cb2900994fa26011a26675cec704a6c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Mon, 30 Jan 2017 09:19:15 +0100 Subject: [PATCH] Fix threading issue on iOS9 --- src/ios/APPBackgroundMode.m | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m index 4661f4c..d11dbd7 100644 --- a/src/ios/APPBackgroundMode.m +++ b/src/ios/APPBackgroundMode.m @@ -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]; } /**