summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheresalech <theresa@livio.io>2019-07-10 09:19:20 -0400
committerGitHub <noreply@github.com>2019-07-10 09:19:20 -0400
commitcccff5ce3adcafd30ae5ffc6226ad1752ef5968e (patch)
tree77f2986cecd059384341b5f9e87c2dcd37875f86
parentbcc9874e4df999022a86d8931c9b60a1c451ccfc (diff)
parent51f71ab7cab7c500147fc1b26aa6c2aba78ff6d2 (diff)
downloadsdl_ios-cccff5ce3adcafd30ae5ffc6226ad1752ef5968e.tar.gz
Merge pull request #1334 from smartdevicelink/revert-1330-fix/do-not-unregister-ea-accessory-notification-on-dealloc
Revert "do not unregister EA accessory notification on transport dealloc"
-rw-r--r--SmartDeviceLink/SDLIAPTransport.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLIAPTransport.m b/SmartDeviceLink/SDLIAPTransport.m
index e83e5aa3d..d67b2f11e 100644
--- a/SmartDeviceLink/SDLIAPTransport.m
+++ b/SmartDeviceLink/SDLIAPTransport.m
@@ -80,7 +80,7 @@ int const CreateSessionRetries = 3;
*/
- (void)sdl_stopEventListening {
SDLLogV(@"SDLIAPTransport stopped listening for events");
- [[NSNotificationCenter defaultCenter] removeObserver:self];
+ [[EAAccessoryManager sharedAccessoryManager] unregisterForLocalNotifications];
}
#pragma mark EAAccessory Notifications