Fix magnet link progress bug
This commit is contained in:
@@ -512,7 +512,7 @@ function updateTorrentProgress () {
|
||||
var changed = false
|
||||
state.client.torrents.forEach(function (torrent) {
|
||||
var torrentSummary = getTorrentSummary(torrent.infoHash)
|
||||
if (!torrentSummary) return
|
||||
if (!torrentSummary || !torrent.files) return
|
||||
torrent.files.forEach(function (file, index) {
|
||||
var numPieces = file._endPiece - file._startPiece + 1
|
||||
var numPiecesPresent = 0
|
||||
|
||||
Reference in New Issue
Block a user