From cbf4e04cefe9b02bc2a6e429741af96017a3c411 Mon Sep 17 00:00:00 2001 From: seyfert Date: Fri, 2 Dec 2016 01:23:24 -0600 Subject: [PATCH] fix: write remaining files to unpack (#961) --- src/asarUtil.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/asarUtil.ts b/src/asarUtil.ts index 3895da7803e..7a6ec5efbe3 100644 --- a/src/asarUtil.ts +++ b/src/asarUtil.ts @@ -241,9 +241,8 @@ class AsarPackager { } } - if (filesToUnpack.length > MAX_FILE_REQUESTS) { + if (filesToUnpack.length > 0) { await writeUnpackedFiles(filesToUnpack, fileCopier) - filesToUnpack.length = 0 } } @@ -394,4 +393,4 @@ export async function checkFileInArchive(asarFile: string, relativeFile: string, if (stat.size === 0) { throw error(`is corrupted: size 0`) } -} \ No newline at end of file +}