Skip to content

Commit

Permalink
resume stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Jun 27, 2014
1 parent 52ce21b commit 4f4a3f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/dest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ var fs = require('graceful-fs');

var writeContents = require('./writeContents');

function noop () {}

// 511 = 0777
var processMode = 511 & (~process.umask());

Expand Down Expand Up @@ -57,8 +55,10 @@ function dest(outFolder, opt) {
});
}

return through2.obj(saveFile)
.on('data', noop);
var stream = through2.obj(saveFile);
// TODO: option for either backpressure or lossy
stream.resume();
return stream;
}

module.exports = dest;

0 comments on commit 4f4a3f3

Please sign in to comment.