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
diff options
context:
space:
mode:
authorDiego Rodríguez B <DiegoRBaquero@users.noreply.github.com>2015-12-09 06:49:16 +0300
committerDiego Rodríguez B <DiegoRBaquero@users.noreply.github.com>2015-12-09 06:49:16 +0300
commitb302418d9f1055d8b9301f68fa0c9e4ecb40f118 (patch)
treeb7a4c40760f4259efb5dd239faae45bc6a6cc9eb
parent276e167daf069d4ca466006b1f3792556ddef058 (diff)
parentcf9e89f0e73e92c0c069f7acd99140d0bbde85fe (diff)
Merge pull request #520 from feross/DiegoRBaquero-patch-1
Initialize pieces on torrent's constructor
-rw-r--r--lib/torrent.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index b9dc705..ccf7782 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -83,6 +83,7 @@ function Torrent (torrentId, opts) {
this.done = false
this._amInterested = false
+ this.pieces = []
this._selections = []
this._critical = []