diff --git a/src/renderer/controllers/torrent-controller.js b/src/renderer/controllers/torrent-controller.js index d75ad547..a49166fb 100644 --- a/src/renderer/controllers/torrent-controller.js +++ b/src/renderer/controllers/torrent-controller.js @@ -127,6 +127,7 @@ module.exports = class TorrentController { torrentFileModtimes (torrentKey, fileModtimes) { const torrentSummary = this.getTorrentSummary(torrentKey) + if (!torrentSummary) throw new Error('Not saving modtimes for deleted torrent ' + torrentKey) torrentSummary.fileModtimes = fileModtimes dispatch('saveStateThrottled') }