Skip to content

Commit

Permalink
stdio: call _undestroy() inside _destroy for stdout and stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Aug 6, 2021
1 parent 712059a commit e9ee76b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/bootstrap/switches/is_main_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function createWritableStdioStream(fd) {

function dummyDestroy(err, cb) {
cb(err);
this._undestroy();

// We need to emit 'close' anyway so that the closing
// of the stream is observable. We just make sure we
Expand Down

0 comments on commit e9ee76b

Please sign in to comment.