mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
The pipeline should wait for close event to finish before calling the callback. The `finishCount` should not below 0 when calling finish function. Fixes: https://github.com/nodejs/node/issues/51540 Co-authored-by: wh0 <wh0@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/53462 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>