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.
|
// 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.
|
||||||
|
|
Loading…
Reference in a new issue