1314: Fixed issue with undefined torrents to resume when app starts.

This commit is contained in:
Alberto Miranda
2018-01-29 08:40:01 -03:00
parent b5bbd9b6a5
commit b5e9923469

View File

@@ -174,6 +174,7 @@ module.exports = class TorrentListController {
resumePausedTorrents () {
console.log('Playback Priority: resuming paused torrents')
if (!this.state.saved.torrentsToResume || !this.state.saved.torrentsToResume.length) return
this.state.saved.torrentsToResume.map((infoHash) => {
this.toggleTorrent(infoHash)
})