Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-03-25 05:01:03 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-03-25 05:01:03 +0300
commit8f7a656d58347463ebe4ae3a91e87c3d40f93bcd (patch)
tree59a792100a754e37d24455bebf3897540d4d3499 /lib
parentd3949564e5e68e7d527354402f164ea819059450 (diff)
parentb27922d11dfee0e669e3784c6d8cffe9c1166426 (diff)
Merge pull request #692 from substack/torrent-store-opts
provide the torrent instance in the opts.store() options
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js1
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),