Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
commit d064b589ae96fd4b706a69ecfde4b85432cd7956 1 parent 724b4de
@andymatuschak andymatuschak authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 SUProbingUpdateDriver.m
8 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];
Please sign in to comment.
Something went wrong with that request. Please try again.