Fix expiryDate property not being taken care of correctly

This commit is contained in:
Andreas Linde 2012-09-25 11:38:53 +02:00
parent be94bf46a4
commit c60a0604fc

View File

@ -915,17 +915,18 @@
BITHockeyLog(@"INFO: Start UpdateManager"); BITHockeyLog(@"INFO: Start UpdateManager");
if ([self expiryDateReached]) return; [self checkExpiryDateReached];
if (![self expiryDateReached]) {
if (![self appVersionIsAuthorized]) {
if ([self authorizationState] == BITUpdateAuthorizationPending) {
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationProgress") image:@"authorize_request.png"];
if (![self appVersionIsAuthorized]) { [self performSelector:@selector(checkForAuthorization) withObject:nil afterDelay:0.0f];
if ([self authorizationState] == BITUpdateAuthorizationPending) { }
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationProgress") image:@"authorize_request.png"]; } else {
if ([self checkForTracker] || ([self isCheckForUpdateOnLaunch] && [self shouldCheckForUpdates])) {
[self performSelector:@selector(checkForAuthorization) withObject:nil afterDelay:0.0f]; [self performSelector:@selector(checkForUpdate) withObject:nil afterDelay:1.0f];
} }
} else {
if ([self checkForTracker] || ([self isCheckForUpdateOnLaunch] && [self shouldCheckForUpdates])) {
[self performSelector:@selector(checkForUpdate) withObject:nil afterDelay:1.0f];
} }
} }
} else { } else {