diff options
author | Justin Gluck <justin.gluck@livio.io> | 2019-12-11 15:39:56 -0500 |
---|---|---|
committer | Justin Gluck <justin.gluck@livio.io> | 2019-12-11 15:39:56 -0500 |
commit | 41288d3c14732ab3c9b4e688328ee6d64d1881cc (patch) | |
tree | d5ece288af2ca576d50fe6ca1d0d63fd015f868d | |
parent | 725b25322fbe41f87b46eb360951f54b29ebeebc (diff) | |
download | sdl_ios-41288d3c14732ab3c9b4e688328ee6d64d1881cc.tar.gz |
no message
-rw-r--r-- | SmartDeviceLink/SDLSecondaryTransportManager.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLSecondaryTransportManager.m b/SmartDeviceLink/SDLSecondaryTransportManager.m index 44c200042..0fca306f7 100644 --- a/SmartDeviceLink/SDLSecondaryTransportManager.m +++ b/SmartDeviceLink/SDLSecondaryTransportManager.m @@ -656,7 +656,7 @@ static const int TCPPortUnspecified = -1; } } else if (notification.name == UIApplicationDidBecomeActiveNotification) { if (([self.stateMachine isCurrentState:SDLSecondaryTransportStateConfigured]) - && self.secondaryTransportType == SDLSecondaryTransportTypeTCP && [self sdl_isTCPReady]) { + && self.secondaryTransportType == SDLSecondaryTransportTypeTCP && [self sdl_isTCPReady] && self.isAppReady) { SDLLogD(@"Resuming TCP transport since the app becomes foreground"); [self.stateMachine transitionToState:SDLSecondaryTransportStateConnecting]; } |