summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Gluck <justin.gluck@livio.io>2019-04-09 11:13:52 -0400
committerJustin Gluck <justin.gluck@livio.io>2019-04-09 11:13:52 -0400
commitd4a0e27d5e78a346893fb3a7fd2465a1598718cd (patch)
tree42bcb14c3e48c2b59792e31b2b9c745917b3e5e5
parent6bff96c9c7cb6dabfcffad4f5ec5c9c7fb94785f (diff)
downloadsdl_ios-d4a0e27d5e78a346893fb3a7fd2465a1598718cd.tar.gz
Fixing issue that caused SDLTransportDidDisconnect to get called before OnAppInterfaceUnregistered
-rw-r--r--SmartDeviceLink/SDLProxy.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m
index 49788793a..f02f401dc 100644
--- a/SmartDeviceLink/SDLProxy.m
+++ b/SmartDeviceLink/SDLProxy.m
@@ -403,9 +403,6 @@ static float DefaultConnectionTimeout = 45.0;
SDLLogV(@"Message received: %@", newMessage);
// Intercept and handle several messages ourselves
- if ([functionName isEqualToString:SDLRPCFunctionNameOnAppInterfaceUnregistered] || [functionName isEqualToString:SDLRPCFunctionNameUnregisterAppInterface]) {
- [self handleRPCUnregistered:dict];
- }
if ([functionName isEqualToString:@"RegisterAppInterfaceResponse"]) {
[self handleRegisterAppInterfaceResponse:(SDLRPCResponse *)newMessage];
@@ -447,6 +444,10 @@ static float DefaultConnectionTimeout = 45.0;
}
[self sdl_invokeDelegateMethodsWithFunction:functionName message:newMessage];
+
+ if ([functionName isEqualToString:SDLRPCFunctionNameOnAppInterfaceUnregistered] || [functionName isEqualToString:SDLRPCFunctionNameUnregisterAppInterface]) {
+ [self handleRPCUnregistered:dict];
+ }
// When an OnHMIStatus notification comes in, after passing it on (above), generate an "OnLockScreenNotification"
if ([functionName isEqualToString:@"OnHMIStatus"]) {