diff options
author | Diego RodrÃguez B <DiegoRBaquero@users.noreply.github.com> | 2015-12-09 06:49:16 +0300 |
---|---|---|
committer | Diego RodrÃguez B <DiegoRBaquero@users.noreply.github.com> | 2015-12-09 06:49:16 +0300 |
commit | b302418d9f1055d8b9301f68fa0c9e4ecb40f118 (patch) | |
tree | b7a4c40760f4259efb5dd239faae45bc6a6cc9eb | |
parent | 276e167daf069d4ca466006b1f3792556ddef058 (diff) | |
parent | cf9e89f0e73e92c0c069f7acd99140d0bbde85fe (diff) |
Merge pull request #520 from feross/DiegoRBaquero-patch-1
Initialize pieces on torrent's constructor
-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 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 = [] |