summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-03-04 10:42:01 -0500
committerJoel Fischer <joeljfischer@gmail.com>2016-03-04 10:42:01 -0500
commita4f1eac95ceeb90270cd054a66045b29b3992fd8 (patch)
tree3a26470379488a28d35298b8bd8f0691518725be
parent3b59b5981001a33bb73ee4faf1db1e6b4eb1cb80 (diff)
downloadsdl_ios-a4f1eac95ceeb90270cd054a66045b29b3992fd8.tar.gz
Only call `onProxyOpened:` when its an RPC servicehotfix/issue_359
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m
index 806575f0f..19da7f3cc 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m
@@ -180,7 +180,7 @@ const int POLICIES_CORRELATION_ID = 65535;
NSString *logMessage = [NSString stringWithFormat:@"StartSession (response)\nSessionId: %d for serviceType %d", sessionID, serviceType];
[SDLDebugTool logInfo:logMessage withType:SDLDebugType_RPC toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName];
- if (serviceType == SDLServiceType_RPC || [SDLGlobals globals].protocolVersion >= 2) {
+ if (serviceType == SDLServiceType_RPC) {
[self invokeMethodOnDelegates:@selector(onProxyOpened) withObject:nil];
}
}