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. // Clean cache on quit.
process.on('exit', function() { process.on('exit', function() {
var archive, p, results; var archive, p;
results = [];
for (p in cachedArchives) { for (p in cachedArchives) {
if (!hasProp.call(cachedArchives, p)) continue; if (!hasProp.call(cachedArchives, p)) continue;
archive = cachedArchives[p]; archive = cachedArchives[p];
results.push(archive.destroy()); archive.destroy();
} }
return results;
}); });
// Separate asar package's path from full path. // Separate asar package's path from full path.