diff options
Diffstat (limited to 'SmartDeviceLink/SDLLifecycleManager.m')
-rw-r--r-- | SmartDeviceLink/SDLLifecycleManager.m | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m index 0ddf64a03..ebd3b5e0b 100644 --- a/SmartDeviceLink/SDLLifecycleManager.m +++ b/SmartDeviceLink/SDLLifecycleManager.m @@ -175,7 +175,8 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; self.lastCorrelationId = 0; self.hmiLevel = nil; - [self sdl_disposeProxy]; // call this method instead of stopProxy to avoid double-dispatching + [SDLDebugTool logInfo:@"Stopping Proxy"]; + self.proxy = nil; [self.delegate managerDidDisconnect]; [self startWithReadyHandler:self.readyHandler]; // Start up again to start watching for new connections @@ -377,13 +378,6 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; #pragma mark Helper Methods - -- (void)sdl_disposeProxy { - [SDLDebugTool logInfo:@"Stop Proxy"]; - [self.proxy dispose]; - self.proxy = nil; -} - - (NSNumber<SDLInt> *)sdl_getNextCorrelationId { if (self.lastCorrelationId == UINT16_MAX) { self.lastCorrelationId = 0; |