Don't collect results in exit event callback

This commit is contained in:
Kevin Sawicki 2016-03-10 13:23:14 -08:00
parent 5ed6c7714b
commit 3a1e837f8b

View file

@ -24,14 +24,12 @@
// Clean cache on quit.
process.on('exit', function() {
var archive, p, results;
results = [];
var archive, p;
for (p in cachedArchives) {
if (!hasProp.call(cachedArchives, p)) continue;
archive = cachedArchives[p];
results.push(archive.destroy());
archive.destroy();
}
return results;
});
// Separate asar package's path from full path.