diff options
author | theresalech <theresa@livio.io> | 2019-07-10 09:17:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 09:17:33 -0400 |
commit | bcc9874e4df999022a86d8931c9b60a1c451ccfc (patch) | |
tree | 6bd2f353df32a986ff19bcfc04073206bdeddb9a | |
parent | 6a1ca080bf9032403706297ad62e914f4c038f7d (diff) | |
parent | 84a091314826c4b9e13cbb486309125b866c900a (diff) | |
download | sdl_ios-bcc9874e4df999022a86d8931c9b60a1c451ccfc.tar.gz |
Merge pull request #1330 from t-yoshii/fix/do-not-unregister-ea-accessory-notification-on-dealloc
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 |