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