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 Nov 29, 2024
1 parent b8a3a1b commit d660809
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 d660809

Please sign in to comment.