summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2017-01-25 17:44:16 -0800
committerMuller, Alexander (A.) <amulle19@ford.com>2017-01-25 17:44:16 -0800
commitcc755a3c684583ca9da98da60c52d8b8e24e31dd (patch)
tree480d7ff2d1c4784725806196b3f00f9b1b722c93
parentf5cce8e887fa5df353b11d55263a7fa0478713bb (diff)
downloadsdl_ios-cc755a3c684583ca9da98da60c52d8b8e24e31dd.tar.gz
Cleaned up ProxyManager startWithReadyHandler:
-rw-r--r--SmartDeviceLink_Example/Classes/ProxyManager.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/SmartDeviceLink_Example/Classes/ProxyManager.m b/SmartDeviceLink_Example/Classes/ProxyManager.m
index 33943e4f7..6f1caec86 100644
--- a/SmartDeviceLink_Example/Classes/ProxyManager.m
+++ b/SmartDeviceLink_Example/Classes/ProxyManager.m
@@ -93,14 +93,15 @@ NS_ASSUME_NONNULL_BEGIN
- (void)startManager {
__weak typeof (self) weakSelf = self;
[self.sdlManager startWithReadyHandler:^(BOOL success, NSError * _Nullable error) {
- if (!weakSelf.sdlManager.registerResponse.success.boolValue) {
+ if (!success) {
NSLog(@"SDL errored starting up: %@", error);
[weakSelf sdlex_updateProxyState:ProxyStateStopped];
- } else {
- [weakSelf sdlex_updateProxyState:ProxyStateConnected];
+ return;
}
+
+ [weakSelf sdlex_updateProxyState:ProxyStateConnected];
- [self setupPermissionsCallbacks];
+ [weakSelf setupPermissionsCallbacks];
if ([weakSelf.sdlManager.hmiLevel isEqualToEnum:[SDLHMILevel FULL]]) {
[weakSelf showInitialData];