diff options
-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 f27296b..a695d07 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -581,7 +581,7 @@ Torrent.prototype._verifyPieces = function () { return function (cb) { if (self.destroyed) return cb(new Error('torrent is destroyed')) self.store.get(index, function (err, buf) { - if (err) return cb(null) // ignore error + if (err) return process.nextTick(cb, null) // ignore error sha1(buf, function (hash) { if (hash === self._hashes[index]) { if (!self.pieces[index]) return |