Merge branch 'abresas-fix-makestreams2'

This commit is contained in:
Sven Slootweg 2016-03-15 03:51:54 +01:00
commit 93e6ea3703
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);
}