diff options
author | NicoleYarroch <nicole@livio.io> | 2019-05-29 14:40:47 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2019-05-29 14:40:47 -0400 |
commit | 0047bf7fd85297cccd52eddc91cbde6530958ad4 (patch) | |
tree | ee82d540f8c056f17a2faf4405cc02ed19b8c325 | |
parent | 71b807fa75ef46b0aaad6ee20d0b20c78eab822f (diff) | |
download | sdl_ios-0047bf7fd85297cccd52eddc91cbde6530958ad4.tar.gz |
Fixed spelling, SDL logs
-rw-r--r-- | SmartDeviceLink/SDLIAPSession.m | 2 | ||||
-rw-r--r-- | SmartDeviceLink/SDLIAPTransport.m | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLIAPSession.m b/SmartDeviceLink/SDLIAPSession.m index 15c7a1b4a..dd5ad2936 100644 --- a/SmartDeviceLink/SDLIAPSession.m +++ b/SmartDeviceLink/SDLIAPSession.m @@ -95,7 +95,7 @@ NS_ASSUME_NONNULL_BEGIN } self.eaSession = nil; - SDLLogD(@"Session closed for: %@", self.accessory.serialNumber); + SDLLogD(@"Session closed with: %@", self.accessory.name); self.accessory.delegate = nil; } diff --git a/SmartDeviceLink/SDLIAPTransport.m b/SmartDeviceLink/SDLIAPTransport.m index 53b7e9912..0e0194c2b 100644 --- a/SmartDeviceLink/SDLIAPTransport.m +++ b/SmartDeviceLink/SDLIAPTransport.m @@ -283,9 +283,13 @@ int const CreateSessionRetries = 3; * Cleans up after a disconnected accessory by closing any open I/O streams. */ - (void)disconnect { - // Stop event listening here so that even if the transport is disconnected by the proxy we unregister for accessory local notifications + // Stop event listening here so that even if the transport is disconnected by `SDLProxy` when there is a start session timeout, the class unregisters for accessory notifications [self sdl_stopEventListening]; + self.retryCounter = 0; + self.sessionSetupInProgress = NO; + self.transportDisconnected = YES; + [self.controlSession destroySession]; [self.dataSession destroySession]; } @@ -300,7 +304,7 @@ int const CreateSessionRetries = 3; */ - (void)sdl_connect:(nullable EAAccessory *)accessory { if (self.transportDisconnected) { - SDLLogV(@"Will not attempt to connect to an accessory becasue the data session disconnected. Waiting for lifecycle manager to create a new tranport object."); + SDLLogV(@"Will not attempt to connect to an accessory because the data session disconnected. Waiting for lifecycle manager to create a new tranport object."); return; } |