From 48938d0e78717224edb886b2afda0cdc202e243d Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 24 Jul 2016 13:13:17 -0400 Subject: [PATCH] Clear downloaded update if delta extraction fails --- Sparkle/SUCoreBasedUpdateDriver.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sparkle/SUCoreBasedUpdateDriver.m b/Sparkle/SUCoreBasedUpdateDriver.m index 5ab29075..5d44d602 100644 --- a/Sparkle/SUCoreBasedUpdateDriver.m +++ b/Sparkle/SUCoreBasedUpdateDriver.m @@ -275,6 +275,8 @@ SUAppcastItem *nonDeltaUpdateItem = self.basicDriver.nonDeltaUpdateItem; assert(nonDeltaUpdateItem != nil); + [self clearDownloadedUpdate]; + // Fall back to the non-delta update. Note that we don't want to trigger another update was found event. self.updateItem = nonDeltaUpdateItem; [self downloadUpdateFromAppcastItem:nonDeltaUpdateItem];