summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-05-22 07:56:22 -0400
committerGitHub <noreply@github.com>2020-05-22 07:56:22 -0400
commit0e3be3d46d2558bf5e9b8b8f4417ce976149202c (patch)
treef324cf5a6a08fa409a6ff78ea81576a6e2cd6031
parent3941707015ba7958d0bafbc7dfb9132a6b416e27 (diff)
parentb6c50a2c3a3dd69ae957e7f86dbfd0380b13a454 (diff)
downloadsdl_ios-0e3be3d46d2558bf5e9b8b8f4417ce976149202c.tar.gz
Merge pull request #1663 from t-yoshii/fix/sdl_handleSystemRequestLaunchApp-should-be-called-only-in-main-thread
fix to call sdl_handleSystemRequestLaunchApp only in main thread
-rw-r--r--SmartDeviceLink/SDLProxy.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m
index 135f67282..8161f7427 100644
--- a/SmartDeviceLink/SDLProxy.m
+++ b/SmartDeviceLink/SDLProxy.m
@@ -585,7 +585,9 @@ static float DefaultConnectionTimeout = 45.0;
} else if ([requestType isEqualToEnum:SDLRequestTypeHTTP]) {
[self sdl_handleSystemRequestHTTP:systemRequest];
} else if ([requestType isEqualToEnum:SDLRequestTypeLaunchApp]) {
- [self sdl_handleSystemRequestLaunchApp:systemRequest];
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [self sdl_handleSystemRequestLaunchApp:systemRequest];
+ });
}
}