From d3e6119fc7e7670d6ffa3cd38162906c1d03a605 Mon Sep 17 00:00:00 2001 From: BrettyWhite Date: Wed, 14 Jun 2017 16:44:45 -0400 Subject: small cleanup --- SmartDeviceLink_Example/Classes/ProxyManager.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SmartDeviceLink_Example/Classes/ProxyManager.m b/SmartDeviceLink_Example/Classes/ProxyManager.m index f842d58bd..7b08c4f2d 100644 --- a/SmartDeviceLink_Example/Classes/ProxyManager.m +++ b/SmartDeviceLink_Example/Classes/ProxyManager.m @@ -71,7 +71,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)startIAP { [self sdlex_updateProxyState:ProxyStateSearchingForConnection]; // Check for previous instance of sdlManager - if (!self.sdlManager){ + if (self.sdlManager) { return; } SDLLifecycleConfiguration *lifecycleConfig = [self.class setLifecycleConfigurationPropertiesOnConfiguration:[SDLLifecycleConfiguration defaultConfigurationWithAppName:SDLAppName appId:SDLAppId]]; // Assume this is production and disable logging @@ -81,19 +81,17 @@ NS_ASSUME_NONNULL_BEGIN self.sdlManager = [[SDLManager alloc] initWithConfiguration:config delegate:self]; [self startManager]; - } } - (void)startTCP { [self sdlex_updateProxyState:ProxyStateSearchingForConnection]; // Check for previous instance of sdlManager - if (!self.sdlManager){ + if (self.sdlManager) { return; } SDLLifecycleConfiguration *lifecycleConfig = [self.class setLifecycleConfigurationPropertiesOnConfiguration:[SDLLifecycleConfiguration debugConfigurationWithAppName:SDLAppName appId:SDLAppId ipAddress:[Preferences sharedPreferences].ipAddress port:[Preferences sharedPreferences].port]]; SDLConfiguration *config = [SDLConfiguration configurationWithLifecycle:lifecycleConfig lockScreen:[SDLLockScreenConfiguration enabledConfiguration]]; self.sdlManager = [[SDLManager alloc] initWithConfiguration:config delegate:self]; [self startManager]; - } } - (void)startManager { -- cgit v1.2.1