Permalink
Browse files

Fixed the total failure of the SUProbingUpdateDriver to notify its de…

…legate when an update is found. Sorry about that, guys! Wow.
  • Loading branch information...
1 parent 724b4de commit d064b589ae96fd4b706a69ecfde4b85432cd7956 @andymatuschak andymatuschak committed Aug 20, 2008
Showing with 6 additions and 2 deletions.
  1. +6 −2 SUProbingUpdateDriver.m
@@ -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];
}

0 comments on commit d064b58

Please sign in to comment.