Only trigger update delegate error abort when there's an error

This commit is contained in:
Zorg committed 2016-05-01 11:21:04 -04:00
1 parent a4157e5989
commit 981f67e8b1
1 file changed
+5 -5
+5 -5
View File
@@ -152,11 +152,11 @@
errorToDisplay = errorToDisplay.userInfo[NSUnderlyingErrorKey];
} while(--finiteRecursion && errorToDisplay);
}
}
// Notify host app that update has aborted
if ([self.updaterDelegate respondsToSelector:@selector(updater:didAbortWithError:)]) {
[self.updaterDelegate updater:self.updater didAbortWithError:error];
// Notify host app that update has aborted
if ([self.updaterDelegate respondsToSelector:@selector(updater:didAbortWithError:)]) {
[self.updaterDelegate updater:self.updater didAbortWithError:error];
}
}
if (self.completionBlock != nil) {