diff options
author | NicoleYarroch <nicole@livio.io> | 2020-05-22 07:56:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 07:56:22 -0400 |
commit | 0e3be3d46d2558bf5e9b8b8f4417ce976149202c (patch) | |
tree | f324cf5a6a08fa409a6ff78ea81576a6e2cd6031 | |
parent | 3941707015ba7958d0bafbc7dfb9132a6b416e27 (diff) | |
parent | b6c50a2c3a3dd69ae957e7f86dbfd0380b13a454 (diff) | |
download | sdl_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.m | 4 |
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]; + }); } } |