Skip to content

Commit

Permalink
stream: properly destroy duplexified functions
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Zhang <[email protected]>
  • Loading branch information
matthieusieben and jazelly committed Sep 26, 2024
1 parent 2c9548a commit 0ec46d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/duplexify.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function fromAsyncGen(fn, destructor) {
const { cb } = await _promise;
process.nextTick(cb);

destructor();
process.nextTick(destructor);
}
}
};
Expand Down

0 comments on commit 0ec46d7

Please sign in to comment.