summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheresalech <theresa@livio.io>2019-07-10 09:18:16 -0400
committerGitHub <noreply@github.com>2019-07-10 09:18:16 -0400
commit51f71ab7cab7c500147fc1b26aa6c2aba78ff6d2 (patch)
tree77f2986cecd059384341b5f9e87c2dcd37875f86
parentbcc9874e4df999022a86d8931c9b60a1c451ccfc (diff)
downloadsdl_ios-51f71ab7cab7c500147fc1b26aa6c2aba78ff6d2.tar.gz
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