diff --git a/renderer/index.js b/renderer/index.js index 2763be5f..4254dbe9 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -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