From 981f67e8b1f393efdd0ba2db70e708a9c7c546f7 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 1 May 2016 11:21:04 -0400 Subject: [PATCH] Only trigger update delegate error abort when there's an error --- Sparkle/SUBasicUpdateDriver.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 747aedcf..acedf2e8 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -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) {