summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2019-05-31 11:39:56 -0400
committerNicoleYarroch <nicole@livio.io>2019-05-31 11:39:56 -0400
commitf8534bdec79eed921a26314b2a5bf689fbc41020 (patch)
treee1fe9f2e0ec21df81e60fc58a42234c5742790b0
parentff55c388cb42b248fb86058edda8578a5433cb72 (diff)
downloadsdl_ios-f8534bdec79eed921a26314b2a5bf689fbc41020.tar.gz
Renamed control session timeout timer methods
-rw-r--r--SmartDeviceLink/SDLIAPControlSession.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLIAPControlSession.m b/SmartDeviceLink/SDLIAPControlSession.m
index e941c8a36..e6505e4b3 100644
--- a/SmartDeviceLink/SDLIAPControlSession.m
+++ b/SmartDeviceLink/SDLIAPControlSession.m
@@ -61,7 +61,7 @@ int const ProtocolIndexTimeoutSeconds = 10;
[self.delegate controlSessionShouldRetry];
} else {
SDLLogD(@"Waiting for the protocol string from Core, setting timer for %d seconds", ProtocolIndexTimeoutSeconds);
- self.protocolIndexTimer = [self sdl_createProtocolIndexTimer];
+ self.protocolIndexTimer = [self sdl_createControlSessionProtocolIndexStringDataTimeoutTimer];
}
}
}
@@ -160,7 +160,7 @@ int const ProtocolIndexTimeoutSeconds = 10;
// When both streams are open, session initialization is complete. Let the delegate know.
if (self.isInputStreamOpen && self.isOutputStreamOpen) {
SDLLogV(@"Control session I/O streams opened for protocol: %@", self.protocolString);
- [self sdl_startSessionTimer];
+ [self sdl_startControlSessionProtocolIndexStringDataTimeoutTimer];
}
}
@@ -227,7 +227,7 @@ int const ProtocolIndexTimeoutSeconds = 10;
*
* @return A timer
*/
-- (SDLTimer *)sdl_createProtocolIndexTimer {
+- (SDLTimer *)sdl_createControlSessionProtocolIndexStringDataTimeoutTimer {
SDLTimer *protocolIndexTimer = [[SDLTimer alloc] initWithDuration:ProtocolIndexTimeoutSeconds repeat:NO];
__weak typeof(self) weakSelf = self;
@@ -247,7 +247,7 @@ int const ProtocolIndexTimeoutSeconds = 10;
/**
* Starts a timer for the session. Core has ~10 seconds to send the protocol string, otherwise the control session is closed and the delegate will be notified that it should attempt to establish a new control session.
*/
-- (void)sdl_startSessionTimer {
+- (void)sdl_startControlSessionProtocolIndexStringDataTimeoutTimer {
if (self.protocolIndexTimer == nil) { return; }
[self.protocolIndexTimer start];
}