From 1bbc3d6b328aed1a0cfb2808b29b6ac838bb17ef Mon Sep 17 00:00:00 2001 From: Eric Guan Date: Thu, 8 Aug 2019 13:23:44 -0700 Subject: Adds missing callback. --- lib/torrent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 { -- cgit v1.2.3