summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-04-14 15:07:25 -0400
committerGitHub <noreply@github.com>2020-04-14 15:07:25 -0400
commitae516457b9ca8520a809653bbe066f4509151cf1 (patch)
treeb8e84dee86008586aa20825dc98967ccca305036
parent52762b25036125a4d0edaa839a2c8480c9069dc5 (diff)
downloadsdl_ios-ae516457b9ca8520a809653bbe066f4509151cf1.tar.gz
Apply suggestions from code review
Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
-rw-r--r--SmartDeviceLink/SDLSecondaryTransportManager.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLSecondaryTransportManager.m b/SmartDeviceLink/SDLSecondaryTransportManager.m
index 16eefffc0..0c7adad36 100644
--- a/SmartDeviceLink/SDLSecondaryTransportManager.m
+++ b/SmartDeviceLink/SDLSecondaryTransportManager.m
@@ -722,6 +722,7 @@ struct TransportProtocolUpdated {
SDLLogV(@"No cleanup needed since manager has been stopped.");
return NO;
} else {
+ // `endBackgroundTask` will be called when the secondary transport disconnects.
SDLLogD(@"Performing cleanup due to the background task expiring: disconnecting the TCP transport.");
[strongSelf.stateMachine transitionToState:SDLSecondaryTransportStateConfigured];
return YES;