summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLSecondaryTransportManager.m
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-06-15 10:24:10 -0400
committerNicoleYarroch <nicole@livio.io>2020-06-15 10:24:10 -0400
commit35c87fbea72f505d36054211a8dcd5c63dafffec (patch)
tree5e8297378443d5be96685a5695eb695616828b75 /SmartDeviceLink/SDLSecondaryTransportManager.m
parentfe3a7e751768407b7ccbf279386164c920b0f4f2 (diff)
downloadsdl_ios-35c87fbea72f505d36054211a8dcd5c63dafffec.tar.gz
Removed duplicate app state tracking methods
Signed-off-by: NicoleYarroch <nicole@livio.io>
Diffstat (limited to 'SmartDeviceLink/SDLSecondaryTransportManager.m')
-rw-r--r--SmartDeviceLink/SDLSecondaryTransportManager.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/SmartDeviceLink/SDLSecondaryTransportManager.m b/SmartDeviceLink/SDLSecondaryTransportManager.m
index ea90652ba..7e0baf13f 100644
--- a/SmartDeviceLink/SDLSecondaryTransportManager.m
+++ b/SmartDeviceLink/SDLSecondaryTransportManager.m
@@ -695,15 +695,11 @@ struct TransportProtocolUpdated {
#pragma mark - App state handling
-/// Tracks the current application state of the app on the phone.
-/// @param notification Notification containing the state of the app
-- (void)sdl_appStateDidUpdate:(NSNotification*)notification {
- self.currentApplicationState = (notification.name == UIApplicationDidBecomeActiveNotification) ? UIApplicationStateActive : UIApplicationStateInactive;
-}
-
/// Closes and re-opens the the secondary transport when the app is backgrounded and foregrounded on the device respectively. This is done because sockets can be reclaimed by the system at anytime when the app is not in the foreground.
/// @param notification Notification from the OS that the app's life-cycle state has changed
- (void)sdl_onAppStateUpdated:(NSNotification *)notification {
+ self.currentApplicationState = (notification.name == UIApplicationDidBecomeActiveNotification) ? UIApplicationStateActive : UIApplicationStateInactive;
+
__weak typeof(self) weakSelf = self;
dispatch_async(self.stateMachineQueue, ^{
__strong typeof(self) strongSelf = weakSelf;