Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Commit

Permalink
Don't reject installation request when download in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikDemyankov committed Dec 2, 2015
1 parent bf835ed commit 4ebc952
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ios/Updater/HCPUpdateInstaller.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ - (BOOL)launchUpdateInstallation:(NSError **)error {
return NO;
}

// if download in progress - exit
if ([HCPUpdateLoader sharedInstance].isDownloadInProgress) {
*error = [NSError errorWithCode:0 description:@"Download in progress, can't perform the installation until it's done."];
return NO;
}

// check if there is anything to install
if (![[NSFileManager defaultManager] fileExistsAtPath:_filesStructure.installationFolder.path]) {
*error = [NSError errorWithCode:kHCPNothingToInstallErrorCode description:@"Nothing to install"];
Expand Down

0 comments on commit 4ebc952

Please sign in to comment.