diff options
author | NicoleYarroch <nicole@livio.io> | 2020-04-14 09:49:04 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2020-04-14 09:49:04 -0400 |
commit | 52762b25036125a4d0edaa839a2c8480c9069dc5 (patch) | |
tree | 95cf0214316b63342fc164b7542ae2fdcb454aa4 | |
parent | 0ad8f49e7320ce7058058310cf386c5ac5ec17fb (diff) | |
download | sdl_ios-52762b25036125a4d0edaa839a2c8480c9069dc5.tar.gz |
Updated SDL logs
-rw-r--r-- | SmartDeviceLink/SDLSecondaryTransportManager.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/SmartDeviceLink/SDLSecondaryTransportManager.m b/SmartDeviceLink/SDLSecondaryTransportManager.m index b57d1e635..16eefffc0 100644 --- a/SmartDeviceLink/SDLSecondaryTransportManager.m +++ b/SmartDeviceLink/SDLSecondaryTransportManager.m @@ -300,12 +300,12 @@ struct TransportProtocolUpdated { } - (void)willTransitionFromStateRegisteredToStateConfigured { - SDLLogD(@"Configuring: stopping services on secondary transport"); + SDLLogD(@"Manger is closing transport but is configured to resume the secondary transport. Stopping services on secondary transport"); [self sdl_handleTransportUpdateWithPrimaryAvailable:YES secondaryAvailable:NO]; } - (void)willTransitionFromStateRegisteredToStateReconnecting { - SDLLogD(@"Reconnecting: stopping services on secondary transport"); + SDLLogD(@"Manger is closing transport but will try to reconnect if configured correctly. Stopping services on secondary transport"); [self sdl_handleTransportUpdateWithPrimaryAvailable:YES secondaryAvailable:NO]; } @@ -715,14 +715,14 @@ struct TransportProtocolUpdated { __weak typeof(self) weakSelf = self; return ^{ __strong typeof(self) strongSelf = weakSelf; - if (strongSelf.sdl_getAppState == UIApplicationStateActive) { - SDLLogV(@"App has been foregrounded. Ignoring notification that the background task ended."); + if (strongSelf.sdl_getAppState == UIApplicationStateActive || [strongSelf.stateMachine isCurrentState:SDLSecondaryTransportStateStopped]) { + SDLLogV(@"No cleanup needed since app has been foregrounded."); return NO; } else if ([strongSelf.stateMachine isCurrentState:SDLSecondaryTransportStateStopped]) { - SDLLogV(@"Manager has been stopped. Ignoring notification that the background task ended."); + SDLLogV(@"No cleanup needed since manager has been stopped."); return NO; } else { - SDLLogD(@"Disconnecting TCP transport due to the background task ending."); + SDLLogD(@"Performing cleanup due to the background task expiring: disconnecting the TCP transport."); [strongSelf.stateMachine transitionToState:SDLSecondaryTransportStateConfigured]; return YES; } |