From cdd8ccadbfe5be8f0d9a974db01232b1031b26a8 Mon Sep 17 00:00:00 2001 From: Alexios Theodoros Brezas Date: Mon, 14 Mar 2016 21:20:41 +0000 Subject: [PATCH] fix makeStreams2 missed rename makeStreams2 uses Readable.wrap method, but passes stream module as parameter instead of the intended sourceStream variable. --- lib/combined-stream2.coffee | 2 +- lib/combined-stream2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/combined-stream2.coffee b/lib/combined-stream2.coffee index 4cf30ad..1a8368f 100644 --- a/lib/combined-stream2.coffee +++ b/lib/combined-stream2.coffee @@ -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) diff --git a/lib/combined-stream2.js b/lib/combined-stream2.js index 425db4a..312c60a 100644 --- a/lib/combined-stream2.js +++ b/lib/combined-stream2.js @@ -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); }