standard fix

This commit is contained in:
Diego Rodríguez Baquero
2021-10-10 13:51:38 -05:00
parent 63b55df637
commit 08a182d165
8 changed files with 15 additions and 15 deletions

View File

@@ -157,7 +157,7 @@ module.exports = class TorrentListController {
prioritizeTorrent (infoHash) {
this.state.saved.torrents
.filter(torrent => // We're interested in active torrents only.
['downloading', 'seeding'].indexOf(torrent.status) !== -1)
['downloading', 'seeding'].indexOf(torrent.status) !== -1)
.forEach((torrent) => { // Pause all active torrents except the one that started playing.
if (infoHash === torrent.infoHash) return