Skip to content

Commit

Permalink
do not unregister EA accessory notification on transport dealloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Takamitsu Yoshii committed Jul 9, 2019
1 parent 6a1ca08 commit 84a0913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SmartDeviceLink/SDLIAPTransport.m
Original file line number Diff line number Diff line change
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 84a0913

Please sign in to comment.