Make sure if the installed version is newer, mandatory is ignored

This commit is contained in:
Andreas Linde 2012-03-08 22:22:21 +01:00
parent 6480c28af4
commit 414da86d30

View File

@ -1077,7 +1077,7 @@ static NSString *kHockeyErrorDomain = @"HockeyErrorDomain";
BOOL result = NO;
for (BWApp *app in self.apps) {
if ([app.version isEqualToString:self.currentAppVersion]) {
if ([app.version isEqualToString:self.currentAppVersion] || [app.version versionCompare:self.currentAppVersion] == NSOrderedAscending) {
break;
}