diff options
author | Takamitsu Yoshii <tyoshii@xevo.com> | 2019-06-21 13:00:53 +0900 |
---|---|---|
committer | Takamitsu Yoshii <tyoshii@xevo.com> | 2019-07-09 10:47:33 +0900 |
commit | 84a091314826c4b9e13cbb486309125b866c900a (patch) | |
tree | 6bd2f353df32a986ff19bcfc04073206bdeddb9a | |
parent | 6a1ca080bf9032403706297ad62e914f4c038f7d (diff) | |
download | sdl_ios-84a091314826c4b9e13cbb486309125b866c900a.tar.gz |
do not unregister EA accessory notification on transport dealloc
-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 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 |