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-07-26 07:59:00 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-07-26 07:59:00 +0300
commitbfa776ba2260ecffae3cac45bec2299a55b36490 (patch)
treec9da21929856335a69b374853a1fcd0595952cb0 /lib
parent69a61e074d564983c584e5c736789522ebe35d13 (diff)
Use discovery.complete() API
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 6d29c5e..e4bedef 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -1574,9 +1574,7 @@ Torrent.prototype._checkDone = function () {
if (!self.done && done) {
self.done = true
self._debug('torrent done: ' + self.infoHash)
- if (self.discovery.tracker) {
- self.discovery.tracker.complete()
- }
+ self.discovery.complete()
self.emit('done')
}