Skip to content

Commit

Permalink
Don't prune if we've already downloaded updates.
Browse files Browse the repository at this point in the history
Fixes #174
  • Loading branch information
joshaber committed Jun 8, 2016
1 parent 37cd028 commit 7dffc4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Squirrel/SQRLUpdater.m
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ - (RACSignal *)performHousekeeping {
- (RACSignal *)pruneUpdateDirectories {
return [[[RACSignal
defer:^{
// If we already have updates downloaded we don't wanna prune them.
if (self.state == SQRLUpdaterStateAwaitingRelaunch) return [RACSignal empty];

SQRLDirectoryManager *directoryManager = [[SQRLDirectoryManager alloc] initWithApplicationIdentifier:SQRLShipItLauncher.shipItJobLabel];
return [directoryManager storageURL];
}]
Expand Down

0 comments on commit 7dffc4b

Please sign in to comment.