Don't collect results in exit event callback
This commit is contained in:
parent
5ed6c7714b
commit
3a1e837f8b
1 changed files with 2 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue