From c60a0604fcd7d8dc91a66e70e67a4d3e8333a831 Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Tue, 25 Sep 2012 11:38:53 +0200 Subject: [PATCH] Fix expiryDate property not being taken care of correctly --- Classes/BITUpdateManager.m | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Classes/BITUpdateManager.m b/Classes/BITUpdateManager.m index 5ea1832450..466137dec5 100644 --- a/Classes/BITUpdateManager.m +++ b/Classes/BITUpdateManager.m @@ -915,17 +915,18 @@ BITHockeyLog(@"INFO: Start UpdateManager"); - if ([self expiryDateReached]) return; - - if (![self appVersionIsAuthorized]) { - if ([self authorizationState] == BITUpdateAuthorizationPending) { - [self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationProgress") image:@"authorize_request.png"]; - - [self performSelector:@selector(checkForAuthorization) withObject:nil afterDelay:0.0f]; - } - } else { - if ([self checkForTracker] || ([self isCheckForUpdateOnLaunch] && [self shouldCheckForUpdates])) { - [self performSelector:@selector(checkForUpdate) withObject:nil afterDelay:1.0f]; + [self checkExpiryDateReached]; + if (![self expiryDateReached]) { + if (![self appVersionIsAuthorized]) { + if ([self authorizationState] == BITUpdateAuthorizationPending) { + [self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationProgress") image:@"authorize_request.png"]; + + [self performSelector:@selector(checkForAuthorization) withObject:nil afterDelay:0.0f]; + } + } else { + if ([self checkForTracker] || ([self isCheckForUpdateOnLaunch] && [self shouldCheckForUpdates])) { + [self performSelector:@selector(checkForUpdate) withObject:nil afterDelay:1.0f]; + } } } } else {