From d41e08b209603dd78c76d7a88e309fc14d1b9b6f Mon Sep 17 00:00:00 2001 From: DC Date: Wed, 23 Mar 2016 05:10:32 -0700 Subject: [PATCH] Fix magnet link progress bug --- renderer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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