diff --git a/src/renderer/controllers/torrent-list-controller.js b/src/renderer/controllers/torrent-list-controller.js index c155fbcf..a218a4d0 100644 --- a/src/renderer/controllers/torrent-list-controller.js +++ b/src/renderer/controllers/torrent-list-controller.js @@ -84,8 +84,13 @@ module.exports = class TorrentListController { return start() } + var fileOrFolder = TorrentSummary.getFileOrFolder(s) + + // New torrent: metadata not yet received + if (!fileOrFolder) return start() + // Existing torrent: check that the path is still there - fs.stat(TorrentSummary.getFileOrFolder(s), function (err) { + fs.stat(fileOrFolder, function (err) { if (err) { s.error = 'path-missing' return