From 0c44e10ca77c0bf69605f686492a6175c0f3f086 Mon Sep 17 00:00:00 2001 From: Karan Thakkar Date: Sat, 15 Oct 2016 12:38:46 +0530 Subject: [PATCH] Move sound.play outisde the for loop --- src/renderer/controllers/torrent-list-controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/controllers/torrent-list-controller.js b/src/renderer/controllers/torrent-list-controller.js index 567df8f0..f6fe6a34 100644 --- a/src/renderer/controllers/torrent-list-controller.js +++ b/src/renderer/controllers/torrent-list-controller.js @@ -133,9 +133,9 @@ module.exports = class TorrentListController { if (torrentSummary.status === 'downloading') { torrentSummary.status = 'paused' ipcRenderer.send('wt-stop-torrenting', torrentSummary.infoHash) - sound.play('DISABLE') } }) + sound.play('DISABLE') } resumeAllTorrents () { @@ -143,9 +143,9 @@ module.exports = class TorrentListController { if (torrentSummary.status === 'paused') { torrentSummary.status = 'downloading' this.startTorrentingSummary(torrentSummary.torrentKey) - sound.play('ENABLE') } }) + sound.play('ENABLE') } toggleTorrentFile (infoHash, index) {