diff options
-rw-r--r-- | lib/torrent.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 0e83e56..01f08e0 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -449,8 +449,9 @@ Torrent.prototype.getFileModtimes = function (cb) { parallelLimit(self.files.map(function (file, index) { return function (cb) { fs.stat(path.join(self.path, file.path), function (err, stat) { + if (err && err.code !== 'ENOENT') return cb(err) ret[index] = stat && stat.mtime.getTime() - cb(err) + cb(null) }) } }), FILESYSTEM_CONCURRENCY, function (err) { |