diff options
author | Kujtim Shala <kshala@ford.com> | 2018-05-24 16:09:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 16:09:13 +0200 |
commit | 23aa69ed54daeb82a5d1f9cad8b27e4a1cd41e04 (patch) | |
tree | 5057bf1227d7c08d79f0873e7884bae402c83b81 | |
parent | 84c6e6f99a4aff5b62d48d9d07f4cd98ea78f80e (diff) | |
download | sdl_ios-fix/issue-977.tar.gz |
Stops reconnect on AppUnauthorized notificationsfix/issue-977
-rw-r--r-- | SmartDeviceLink/SDLLifecycleManager.m | 2 |
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]; } |