mirror of
https://github.com/fluencelabs/dweb-transports
synced 2025-03-15 18:30:49 +00:00
Fix p_addTorrentFromTorrentFile
This commit is contained in:
parent
c60a31510e
commit
6fd7e95526
@ -227,7 +227,7 @@ class TransportWEBTORRENT extends Transport {
|
||||
// TODO: doc
|
||||
try {
|
||||
const opts = { path: filesPath };
|
||||
const oldTorrent = this.webtorrent.get(torrentId);
|
||||
const oldTorrent = this.webtorrent.get(torrentFilePath);
|
||||
if (oldTorrent) {
|
||||
oldTorrent.rescanFiles();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user