summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakamitsu Yoshii <tyoshii@xevo.com>2018-02-14 15:08:18 +0900
committerTakamitsu Yoshii <tyoshii@xevo.com>2018-02-15 11:12:04 +0900
commitfd3917d797d4dfb83e01486b65792f492bbbbfb5 (patch)
tree2db493e0ef8f28ed4e75150234f75894997ee65a
parent96f2b8d8bddd99cc759ba9e94f1130ac8e4daf4e (diff)
downloadsdl_ios-fd3917d797d4dfb83e01486b65792f492bbbbfb5.tar.gz
close EA session before reconnection after start session timeout occured
-rw-r--r--SmartDeviceLink/SDLProxy.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m
index 24301c412..d75f7c174 100644
--- a/SmartDeviceLink/SDLProxy.m
+++ b/SmartDeviceLink/SDLProxy.m
@@ -209,6 +209,7 @@ static float DefaultConnectionTimeout = 45.0;
__weak typeof(self) weakSelf = self;
self.startSessionTimer.elapsedBlock = ^{
SDLLogW(@"Start session timed out");
+ [weakSelf.transport disconnect];
[weakSelf performSelector:@selector(notifyProxyClosed) withObject:nil afterDelay:NotifyProxyClosedDelay];
};
}