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,8 +915,8 @@
BITHockeyLog(@"INFO: Start UpdateManager"); BITHockeyLog(@"INFO: Start UpdateManager");
if ([self expiryDateReached]) return; [self checkExpiryDateReached];
if (![self expiryDateReached]) {
if (![self appVersionIsAuthorized]) { if (![self appVersionIsAuthorized]) {
if ([self authorizationState] == BITUpdateAuthorizationPending) { if ([self authorizationState] == BITUpdateAuthorizationPending) {
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationProgress") image:@"authorize_request.png"]; [self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationProgress") image:@"authorize_request.png"];
@ -928,6 +928,7 @@
[self performSelector:@selector(checkForUpdate) withObject:nil afterDelay:1.0f]; [self performSelector:@selector(checkForUpdate) withObject:nil afterDelay:1.0f];
} }
} }
}
} else { } else {
if ([self checkForTracker]) { if ([self checkForTracker]) {
// if we are in the app store, make sure not to send usage information in any case for now // if we are in the app store, make sure not to send usage information in any case for now