diff --git a/src/ssn/streams/getFileFromDisks.ts b/src/ssn/streams/getFileFromDisks.ts index 8602456..b535bac 100644 --- a/src/ssn/streams/getFileFromDisks.ts +++ b/src/ssn/streams/getFileFromDisks.ts @@ -23,7 +23,7 @@ export default function getFileFromDisks(disks: string[], { diskStart, offset, s let totalRead = 0; //Create new stream that concatenates disks until storedSize is reached, then ends the stream. - const outputStream = new stream.Duplex({ + const outputStream = new stream.PassThrough({ /*read(num) { if (num === undefined) { throw new Error('Expected to receive number of bytes when reading from stream.');