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:
authorFeross Aboukhadijeh <feross@feross.org>2015-12-04 07:17:06 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-12-04 07:17:06 +0300
commit55266e16228d83a81d14bde004e959d3f2aa8753 (patch)
tree55b21d208c064521068eb93200e2f332adfb6cde
parent3f148aa2ff6e791432b235f9b0a20ad8196f3efd (diff)
dedupe urlList
Fixes https://github.com/feross/instant.io/issues/92
-rw-r--r--lib/torrent.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index fc6fa19..ba13d8e 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -251,6 +251,7 @@ Torrent.prototype._processParsedTorrent = function (parsedTorrent) {
}
uniq(parsedTorrent.announce)
+ uniq(parsedTorrent.urlList)
extendMutable(this, parsedTorrent)