summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLIAPDataSession.m
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2019-05-14 14:44:50 -0400
committerNicoleYarroch <nicole@livio.io>2019-05-14 14:44:50 -0400
commitce82bdc48d00b34774638d1162a0d7bcd9efa1ca (patch)
treeb1d9521ba0bffa2919c5b2832c4d33fd902395a1 /SmartDeviceLink/SDLIAPDataSession.m
parent816e889521b69d5c88a0e693220f49e40eb348bc (diff)
downloadsdl_ios-ce82bdc48d00b34774638d1162a0d7bcd9efa1ca.tar.gz
Refactoring control and data sessions
Diffstat (limited to 'SmartDeviceLink/SDLIAPDataSession.m')
-rw-r--r--SmartDeviceLink/SDLIAPDataSession.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLIAPDataSession.m b/SmartDeviceLink/SDLIAPDataSession.m
index 6e4d6bd1e..2a6541a0e 100644
--- a/SmartDeviceLink/SDLIAPDataSession.m
+++ b/SmartDeviceLink/SDLIAPDataSession.m
@@ -93,7 +93,7 @@ NS_ASSUME_NONNULL_BEGIN
SDLLogD(@"Data session is nil");
return;
}
-
+
// The handler will be called on the IO thread, but the session stop method must be called on the main thread
dispatch_async(dispatch_get_main_queue(), ^{
[strongSelf stopSession];
@@ -154,7 +154,7 @@ NS_ASSUME_NONNULL_BEGIN
SDLLogE(@"Data stream error");
dispatch_async(dispatch_get_main_queue(), ^{
[strongSelf stopSession];
- if (![LegacyProtocolString isEqualToString:strongSelf.session.protocol]) {
+ if (![strongSelf.session.protocol isEqualToString:LegacyProtocolString]) {
if (self.delegate == nil) { return; }
[self.delegate retryDataSession];
}