diff options
-rw-r--r-- | SmartDeviceLink_Example/Classes/ProxyManager.m | 6 |
1 files 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 { |