summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Gluck <justin.gluck@livio.io>2019-12-11 15:39:56 -0500
committerJustin Gluck <justin.gluck@livio.io>2019-12-11 15:39:56 -0500
commit41288d3c14732ab3c9b4e688328ee6d64d1881cc (patch)
treed5ece288af2ca576d50fe6ca1d0d63fd015f868d
parent725b25322fbe41f87b46eb360951f54b29ebeebc (diff)
downloadsdl_ios-41288d3c14732ab3c9b4e688328ee6d64d1881cc.tar.gz
no message
-rw-r--r--SmartDeviceLink/SDLSecondaryTransportManager.m2
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];
}