summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-06-09 11:50:18 -0400
committerNicoleYarroch <nicole@livio.io>2020-06-09 11:50:18 -0400
commitfc04575a6db65894cb6f736ad810fddbc27ecff8 (patch)
treec7f675f209bcdeecdcc869b2b3671b8ba4f55e7b
parentc6c95734647200a5caa35d979b53fd822950efd0 (diff)
downloadsdl_ios-fc04575a6db65894cb6f736ad810fddbc27ecff8.tar.gz
Removed duplicate code
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r--SmartDeviceLink/SDLSecondaryTransportManager.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLSecondaryTransportManager.m b/SmartDeviceLink/SDLSecondaryTransportManager.m
index d041a368e..b9d1c3d01 100644
--- a/SmartDeviceLink/SDLSecondaryTransportManager.m
+++ b/SmartDeviceLink/SDLSecondaryTransportManager.m
@@ -586,10 +586,8 @@ struct TransportProtocolUpdated {
- (void)sdl_transportClosed {
dispatch_async(self.stateMachineQueue, ^{
if ([self sdl_isTransportOpened]) {
- if ([self.stateMachine.currentState isEqualToEnum:SDLSecondaryTransportStateRegistered] || [self.stateMachine.currentState isEqualToEnum:SDLSecondaryTransportStateConnecting]) {
- [self.streamingProtocolDelegate transportClosed];
- }
SDLLogV(@"Secondary transport is ready to reconnect. Attempting to reconnect the secondary transport");
+ [self.streamingProtocolDelegate transportClosed];
[self.stateMachine transitionToState:SDLSecondaryTransportStateReconnecting];
} else {
SDLLogD(@"Secondary transport is not ready to reconnect. Will not attempt to reconnect the secondary transport");