diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 88e8799..4ccd26e 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -344,6 +344,7 @@ Torrent.prototype._onMetadata = function (metadata) { self.store = new ImmediateChunkStore( new self._store(self.pieceLength, { + torrent: self, files: self.files.map(function (file) { return { path: path.join(self.path, file.path), |