diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-07-26 07:59:00 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-07-26 07:59:00 +0300 |
commit | bfa776ba2260ecffae3cac45bec2299a55b36490 (patch) | |
tree | c9da21929856335a69b374853a1fcd0595952cb0 /lib | |
parent | 69a61e074d564983c584e5c736789522ebe35d13 (diff) |
Use discovery.complete() API
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 4 |
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') } |