chore: don't explicitly destroy asar archives (#15734)

This commit is contained in:
Jeremy Apthorp 2018-11-19 13:12:41 -08:00 committed by GitHub
parent ec4212cce1
commit 90d1c0b2b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 13 deletions

View file

@ -37,14 +37,6 @@
return newArchive
}
// Clean cache on quit.
process.on('exit', () => {
for (const archive of cachedArchives.values()) {
archive.destroy()
}
cachedArchives.clear()
})
const ASAR_EXTENSION = '.asar'
// Separate asar package's path from full path.