diff options
author | David Switzer <dswitzer@xevo.com> | 2017-04-14 09:49:07 -0700 |
---|---|---|
committer | David Switzer <dswitzer@xevo.com> | 2017-04-14 09:49:07 -0700 |
commit | a24bdb5994490bcf8f8eb84c455bd6dd880d791f (patch) | |
tree | b87190b262e43d447cbfb2310115e86e95c37403 | |
parent | 4d22293fe85e7e38d3a88a9147ef9f608d8144a4 (diff) | |
download | sdl_ios-a24bdb5994490bcf8f8eb84c455bd6dd880d791f.tar.gz |
Use the accessory serial number to verify disconnect notification is for our device.
-rw-r--r-- | SmartDeviceLink/SDLIAPTransport.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLIAPTransport.m b/SmartDeviceLink/SDLIAPTransport.m index cbf1ccd7d..ea6cb0ee3 100644 --- a/SmartDeviceLink/SDLIAPTransport.m +++ b/SmartDeviceLink/SDLIAPTransport.m @@ -106,7 +106,7 @@ int const streamOpenTimeoutSeconds = 2; if (accessory.connectionID != self.session.accessory.connectionID) { [SDLDebugTool logInfo:@"Accessory connection ID mismatch!!!" withType:SDLDebugType_Transport_iAP toOutput:SDLDebugOutput_All toGroup:self.debugConsoleGroupName]; } - if ([accessory.name isEqualToString:self.session.accessory.name]){ + if ([accessory.serialNumber isEqualToString:self.session.accessory.serialNumber]){ self.sessionSetupInProgress = NO; [self disconnect]; [self.delegate onTransportDisconnected]; |