Merge pull request #379 from jfurrow/bug/fix-multi-file-downloads

Fix bug in multi-file downloads
This commit is contained in:
John Furrow
2017-06-11 20:46:31 -07:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+1 -5
View File
@@ -80,11 +80,7 @@ var client = {
downloadFiles(hash, files, res) {
try {
let selectedTorrent = null;
this.getTorrent({hash}, (torrent) => {
selectedTorrent = torrent;
});
const selectedTorrent = torrentService.getTorrent(hash);
this.getTorrentDetails(hash, (torrentDetails) => {
const filePathsToDownload = this.findFilesByIndicies(
+4
View File
@@ -189,6 +189,10 @@ class TorrentService extends EventEmitter {
return torrentStatus;
}
getTorrent(hash) {
return this.torrentListSummary.torrents[hash];
}
getTorrentList() {
return this.torrentListSummary;
}