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
path: root/lib
diff options
context:
space:
mode:
authorEric Guan <guanzo91@gmail.com>2019-08-08 23:23:44 +0300
committerEric Guan <guanzo91@gmail.com>2019-08-08 23:23:44 +0300
commit1bbc3d6b328aed1a0cfb2808b29b6ac838bb17ef (patch)
tree4073499157b61da98823a1b42f672636df5f00ef /lib
parentea14952c138be08435bd566de6819302f19024e2 (diff)
Adds missing callback.
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js2
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 {