From 7a757f9e0505cd1076617c27365548d217e82aa0 Mon Sep 17 00:00:00 2001 From: DC Date: Sun, 4 Sep 2016 14:27:22 -0700 Subject: [PATCH] More info in torrentFileModtimes, fix #892 --- src/renderer/controllers/torrent-controller.js | 1 + 1 file changed, 1 insertion(+) 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') }