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:
Diffstat (limited to 'lib/torrent.js')
-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')
}