mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Don't collect results in exit event callback
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user