fixes
This commit is contained in:
@@ -156,8 +156,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)
|
||||
.filter(torrent => ['downloading', 'seeding'].includes(torrent.status)) // Active torrents only.
|
||||
.forEach((torrent) => { // Pause all active torrents except the one that started playing.
|
||||
if (infoHash === torrent.infoHash) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user