summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKujtim Shala <kshala@ford.com>2018-05-24 16:09:13 +0200
committerGitHub <noreply@github.com>2018-05-24 16:09:13 +0200
commit23aa69ed54daeb82a5d1f9cad8b27e4a1cd41e04 (patch)
tree5057bf1227d7c08d79f0873e7884bae402c83b81
parent84c6e6f99a4aff5b62d48d9d07f4cd98ea78f80e (diff)
downloadsdl_ios-fix/issue-977.tar.gz
Stops reconnect on AppUnauthorized notificationsfix/issue-977
-rw-r--r--SmartDeviceLink/SDLLifecycleManager.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m
index 58cc78e1e..13bfa04e2 100644
--- a/SmartDeviceLink/SDLLifecycleManager.m
+++ b/SmartDeviceLink/SDLLifecycleManager.m
@@ -669,6 +669,8 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
[self.lifecycleStateMachine transitionToState:SDLLifecycleStateStopped];
} else if ([self.lifecycleStateMachine isCurrentState:SDLLifecycleStateStopped]) {
return;
+ } else if ([appUnregisteredNotification.reason isEqualToEnum:SDLAppInterfaceUnregisteredReasonAppUnauthorized]) {
+ [self.lifecycleStateMachine transitionToState:SDLLifecycleStateStopped];
} else {
[self.lifecycleStateMachine transitionToState:SDLLifecycleStateReconnecting];
}