fix makeStreams2 missed rename

makeStreams2 uses Readable.wrap method, but passes stream module as
parameter instead of the intended sourceStream variable.
This commit is contained in:
Alexios Theodoros Brezas 2016-03-14 21:20:41 +00:00
parent dfd11e8dcb
commit cdd8ccadbf
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ makeStreams2 = (sourceStream) ->
return sourceStream.pipe(new stream.PassThrough())
debug "wrapping stream..."
wrapper = new stream.Readable().wrap(stream)
wrapper = new stream.Readable().wrap(sourceStream)
if sourceStream.destroy?
wrapper.destroy = sourceStream.destroy.bind(sourceStream)

View file

@ -36,7 +36,7 @@ makeStreams2 = function(sourceStream) {
return sourceStream.pipe(new stream.PassThrough());
}
debug("wrapping stream...");
wrapper = new stream.Readable().wrap(stream);
wrapper = new stream.Readable().wrap(sourceStream);
if (sourceStream.destroy != null) {
wrapper.destroy = sourceStream.destroy.bind(sourceStream);
}