Merge branch 'abresas-fix-makestreams2'

master
Sven Slootweg 9 years ago
commit 93e6ea3703

@ -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)

@ -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);
}

Loading…
Cancel
Save