summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrettyWhite <geekman3454@protonmail.com>2017-06-14 16:44:45 -0400
committerBrettyWhite <geekman3454@protonmail.com>2017-06-14 16:44:45 -0400
commitd3e6119fc7e7670d6ffa3cd38162906c1d03a605 (patch)
tree97f6541df5459956f107fdc669aecbbf578653d1
parentd8ce0dbcc8d804e5de3b1f88362ef3aa7d001fc8 (diff)
downloadsdl_ios-bugfix/issue_625.tar.gz
small cleanupbugfix/issue_625
-rw-r--r--SmartDeviceLink_Example/Classes/ProxyManager.m6
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 {