Skip to content

Commit

Permalink
Fixed the total failure of the SUProbingUpdateDriver to notify its de…
Browse files Browse the repository at this point in the history
…legate when an update is found. Sorry about that, guys! Wow.
  • Loading branch information
andymatuschak committed Aug 20, 2008
1 parent 724b4de commit d064b58
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SUProbingUpdateDriver.m
Expand Up @@ -7,19 +7,23 @@
//

#import "SUProbingUpdateDriver.h"

#import "SUUpdater.h"

@implementation SUProbingUpdateDriver

// Stop as soon as we have an answer! The superclasses will already have taken care of notifying the delegate.
// Stop as soon as we have an answer! Since the superclass implementations are not called, we are responsible for notifying the delegate.

- (void)didFindValidUpdate
{
if ([[updater delegate] respondsToSelector:@selector(updater:didFindValidUpdate:)])
[[updater delegate] updater:updater didFindValidUpdate:updateItem];
[self abortUpdate];
}

- (void)didNotFindUpdate
{
if ([[updater delegate] respondsToSelector:@selector(updaterDidNotFindUpdate:)])
[[updater delegate] updaterDidNotFindUpdate:updater];
[self abortUpdate];
}

Expand Down

0 comments on commit d064b58

Please sign in to comment.