summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Gluck <justin.gluck@livio.io>2019-12-12 14:20:18 -0500
committerJustin Gluck <justin.gluck@livio.io>2019-12-12 14:20:18 -0500
commit256f03aebd1d12331c7456b2d950ac561894bb86 (patch)
tree410665c1839c0cbe76bd39f3074c2d35d6cedaf3
parent41288d3c14732ab3c9b4e688328ee6d64d1881cc (diff)
downloadsdl_ios-bugfix/issue-1476-SecurityManager-Set-For-SecondaryProtocol.tar.gz
-rw-r--r--SmartDeviceLink/SDLSecondaryTransportManager.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLSecondaryTransportManager.m b/SmartDeviceLink/SDLSecondaryTransportManager.m
index 0fca306f7..860abcbaf 100644
--- a/SmartDeviceLink/SDLSecondaryTransportManager.m
+++ b/SmartDeviceLink/SDLSecondaryTransportManager.m
@@ -715,7 +715,8 @@ static const int TCPPortUnspecified = -1;
- (void)appDidBecomeReady {
self.appReady = YES;
- if (([self.stateMachine.currentState isEqualToString:SDLSecondaryTransportStateConfigured] && self.tcpPort != SDLControlFrameInt32NotFound && self.ipAddress) || self.secondaryTransportType == SDLSecondaryTransportTypeIAP) {
+ if (([self.stateMachine.currentState isEqualToString:SDLSecondaryTransportStateConfigured] && self.tcpPort != SDLControlFrameInt32NotFound && self.ipAddress != nil)
+ || self.secondaryTransportType == SDLSecondaryTransportTypeIAP) {
[self.stateMachine transitionToState:SDLSecondaryTransportStateConnecting];
}
}