Skip to content

Commit

Permalink
print pdf timeout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Schabschneider committed May 18, 2023
1 parent f2d3871 commit 1b31a88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,10 @@ class Printer extends EventEmitter {
throw e;
});

this.closeAfter && page.close();
if (this.closeAfter) {
page.close();
this.close();
}

this.emit('postprocessing');

Expand Down

0 comments on commit 1b31a88

Please sign in to comment.