From 573b9013be5786958817a6a981f48cd8620be3d8 Mon Sep 17 00:00:00 2001 From: Adam Lynch Date: Mon, 19 Oct 2020 17:32:00 +0100 Subject: [PATCH] Don't clear pending update when cacached file name isn't a match --- packages/electron-updater/src/DownloadedUpdateHelper.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/electron-updater/src/DownloadedUpdateHelper.ts b/packages/electron-updater/src/DownloadedUpdateHelper.ts index 5603a6b156b..e01096cdfac 100644 --- a/packages/electron-updater/src/DownloadedUpdateHelper.ts +++ b/packages/electron-updater/src/DownloadedUpdateHelper.ts @@ -133,8 +133,7 @@ export class DownloadedUpdateHelper { const updateFile = path.join(this.cacheDirForPendingUpdate, cachedInfo.fileName) if (!(await pathExists(updateFile))) { - logger.info("Cached update file doesn't exist, directory for cached update will be cleaned") - await this.cleanCacheDirForPendingUpdate() + logger.info("Cached update file doesn't exist") return null }