diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index d484198..ef541ea 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -565,7 +565,7 @@ class Torrent extends EventEmitter { if (this.destroyed) return cb(new Error('torrent is destroyed')) if (hash === this._hashes[index]) { - if (!this.pieces[index]) return + if (!this.pieces[index]) return cb(null) this._debug('piece verified %s', index) this._markVerified(index) } else { |