Skip to content

Commit

Permalink
Add stream as param to onFinish handler
Browse files Browse the repository at this point in the history
Fixes: caolan#532
  • Loading branch information
Joe Grund committed Sep 2, 2016
1 parent 5b6cd99 commit 3a7231a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ function defaultReadableOnFinish(readable, callback) {
}

function pipeReadable(xs, onFinish, stream) {
var cleanup = onFinish(xs, streamEndCb);
var cleanup = onFinish(xs, streamEndCb, stream);
var unbound = false;

xs.pipe(stream);
Expand Down

0 comments on commit 3a7231a

Please sign in to comment.