diff options
author | NicoleYarroch <nicole@livio.io> | 2020-06-09 11:50:18 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2020-06-09 11:50:18 -0400 |
commit | fc04575a6db65894cb6f736ad810fddbc27ecff8 (patch) | |
tree | c7f675f209bcdeecdcc869b2b3671b8ba4f55e7b | |
parent | c6c95734647200a5caa35d979b53fd822950efd0 (diff) | |
download | sdl_ios-fc04575a6db65894cb6f736ad810fddbc27ecff8.tar.gz |
Removed duplicate code
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r-- | SmartDeviceLink/SDLSecondaryTransportManager.m | 4 |
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"); |