Skip to content

Commit

Permalink
use finisher in deferred stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Jaby committed Oct 27, 2014
1 parent 2bb4ed8 commit 1a15a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/write-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function WriteRead (file, options) {
function deferredStream () {
var readable = stream.PassThrough();

writable.on('finish', function() {
finisher.on('finish', function() {
fs.createReadStream(file).pipe(readable);
});

Expand Down

0 comments on commit 1a15a5a

Please sign in to comment.