summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Gluck <justin.gluck@livio.io>2019-04-11 12:43:44 -0400
committerJustin Gluck <justin.gluck@livio.io>2019-04-11 12:43:44 -0400
commit4e1081f44600d7a4eaa79f3c23f5f0668d5ecaaf (patch)
treee45aefa89f97ce00bbfb97001b42ea8b0f0c68ad
parentd4a0e27d5e78a346893fb3a7fd2465a1598718cd (diff)
downloadsdl_ios-bugfix/issue-1097-OnAppInterfaceUnregistered-Reconnecting.tar.gz
Adding comment so devs dont move logic aroundbugfix/issue-1097-OnAppInterfaceUnregistered-Reconnecting
-rw-r--r--SmartDeviceLink/SDLProxy.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m
index f02f401dc..ecba6b97f 100644
--- a/SmartDeviceLink/SDLProxy.m
+++ b/SmartDeviceLink/SDLProxy.m
@@ -445,6 +445,7 @@ static float DefaultConnectionTimeout = 45.0;
[self sdl_invokeDelegateMethodsWithFunction:functionName message:newMessage];
+ //Intercepting SDLRPCFunctionNameOnAppInterfaceUnregistered must happen after it is broadcasted as a notification above. This will prevent reccoction attempts in the lifecycle manager when the AppInterfaceUnregisteredReason should prevent reconnections.
if ([functionName isEqualToString:SDLRPCFunctionNameOnAppInterfaceUnregistered] || [functionName isEqualToString:SDLRPCFunctionNameUnregisterAppInterface]) {
[self handleRPCUnregistered:dict];
}