diff options
-rw-r--r-- | lib/file-stream.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js index cb6eb63..c344913 100644 --- a/lib/file-stream.js +++ b/lib/file-stream.js @@ -13,7 +13,7 @@ const debug = debugFactory('webtorrent:file-stream') */ class FileStream extends Readable { constructor (file, opts) { - super(opts) + super(opts ?? {}) this._torrent = file._torrent |