Fix p_addTorrentFromTorrentFile

This commit is contained in:
John Hiesey 2019-03-19 18:14:24 -07:00
parent c60a31510e
commit 6fd7e95526

View File

@ -227,7 +227,7 @@ class TransportWEBTORRENT extends Transport {
// TODO: doc // TODO: doc
try { try {
const opts = { path: filesPath }; const opts = { path: filesPath };
const oldTorrent = this.webtorrent.get(torrentId); const oldTorrent = this.webtorrent.get(torrentFilePath);
if (oldTorrent) { if (oldTorrent) {
oldTorrent.rescanFiles(); oldTorrent.rescanFiles();
} else { } else {