diff options
-rw-r--r-- | lib/torrent.js | 5 | ||||
-rw-r--r-- | package.json | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 8bcb2bc..7f583c4 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -414,9 +414,10 @@ Torrent.prototype._onMetadata = function (metadata) { var unchanged = self.files.map(function (_, index) { return fileModtimes[index] === self._fileModtimes[index] - }).reduce(function (a, b) { - return a && b + }).every(function (x) { + return x }) + if (unchanged) { for (var index = 0; index < self.pieces.length; index++) { self._markVerified(index) diff --git a/package.json b/package.json index dbf1c4f..862acb7 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "bittorrent-dht": "^7.0.0", "bittorrent-protocol": "^2.0.0", "chunk-store-stream": "^2.0.0", - "cpus": "^1.0.0", "create-torrent": "^3.4.0", "debug": "^2.1.0", "end-of-stream": "^1.0.0", |