diff --git a/lib/exportJob.js b/lib/exportJob.js index 5eb2d20..4a9f28f 100644 --- a/lib/exportJob.js +++ b/lib/exportJob.js @@ -144,7 +144,7 @@ class ExportJob extends EventEmitter { async.series(windowEvents, (err, results) => { if (this.options.closeWindow) { - win.close() + this.destroy() this.emit(`${RENDER_EVENT_PREFIX}window.close`) } /**