summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakamitsu Yoshii <tyoshii@xevo.com>2019-06-21 13:00:53 +0900
committerTakamitsu Yoshii <tyoshii@xevo.com>2019-07-09 10:47:33 +0900
commit84a091314826c4b9e13cbb486309125b866c900a (patch)
tree6bd2f353df32a986ff19bcfc04073206bdeddb9a
parent6a1ca080bf9032403706297ad62e914f4c038f7d (diff)
downloadsdl_ios-84a091314826c4b9e13cbb486309125b866c900a.tar.gz
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 d67b2f11e..e83e5aa3d 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");
- [[EAAccessoryManager sharedAccessoryManager] unregisterForLocalNotifications];
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
}
#pragma mark EAAccessory Notifications