Skip to content

Commit

Permalink
Merge pull request #1330 from t-yoshii/fix/do-not-unregister-ea-acces…
Browse files Browse the repository at this point in the history
…sory-notification-on-dealloc

do not unregister EA accessory notification on transport dealloc
  • Loading branch information
theresalech committed Jul 10, 2019
2 parents 6a1ca08 + 84a0913 commit bcc9874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SmartDeviceLink/SDLIAPTransport.m
Expand Up @@ -80,7 +80,7 @@ - (void)sdl_startEventListening {
*/
- (void)sdl_stopEventListening {
SDLLogV(@"SDLIAPTransport stopped listening for events");
[[EAAccessoryManager sharedAccessoryManager] unregisterForLocalNotifications];
[[NSNotificationCenter defaultCenter] removeObserver:self];
}

#pragma mark EAAccessory Notifications
Expand Down

0 comments on commit bcc9874

Please sign in to comment.