Pause All will now pause seeding torrents too

This commit is contained in:
Karan Thakkar
2016-10-24 23:49:57 +05:30
committed by Dan Flettre
parent 0c44e10ca7
commit ed0f05abc4

View File

@@ -130,7 +130,8 @@ module.exports = class TorrentListController {
pauseAllTorrents () {
this.state.saved.torrents.forEach((torrentSummary) => {
if (torrentSummary.status === 'downloading') {
if (torrentSummary.status === 'downloading' ||
torrentSummary.status === 'seeding') {
torrentSummary.status = 'paused'
ipcRenderer.send('wt-stop-torrenting', torrentSummary.infoHash)
}