summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheresalech <theresa@livio.io>2019-07-10 09:17:33 -0400
committerGitHub <noreply@github.com>2019-07-10 09:17:33 -0400
commitbcc9874e4df999022a86d8931c9b60a1c451ccfc (patch)
tree6bd2f353df32a986ff19bcfc04073206bdeddb9a
parent6a1ca080bf9032403706297ad62e914f4c038f7d (diff)
parent84a091314826c4b9e13cbb486309125b866c900a (diff)
downloadsdl_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.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