diff options
author | Takamitsu Yoshii <tyoshii@xevo.com> | 2020-05-18 12:50:59 +0900 |
---|---|---|
committer | Takamitsu Yoshii <tyoshii@xevo.com> | 2020-05-20 09:01:27 +0900 |
commit | b6c50a2c3a3dd69ae957e7f86dbfd0380b13a454 (patch) | |
tree | f324cf5a6a08fa409a6ff78ea81576a6e2cd6031 | |
parent | 3941707015ba7958d0bafbc7dfb9132a6b416e27 (diff) | |
download | sdl_ios-b6c50a2c3a3dd69ae957e7f86dbfd0380b13a454.tar.gz |
fix to call sdl_handleSystemRequestLaunchApp from 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]; + }); } } |