Skip to content

Commit

Permalink
fix: write remaining files to unpack (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
seyfert authored and develar committed Dec 2, 2016
1 parent d289f4b commit cbf4e04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/asarUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@ class AsarPackager {
}
}

if (filesToUnpack.length > MAX_FILE_REQUESTS) {
if (filesToUnpack.length > 0) {
await writeUnpackedFiles(filesToUnpack, fileCopier)
filesToUnpack.length = 0
}
}

Expand Down Expand Up @@ -394,4 +393,4 @@ export async function checkFileInArchive(asarFile: string, relativeFile: string,
if (stat.size === 0) {
throw error(`is corrupted: size 0`)
}
}
}

0 comments on commit cbf4e04

Please sign in to comment.