diff --git a/common/modules/webtorrent.js b/common/modules/webtorrent.js index 21db346..e500e27 100644 --- a/common/modules/webtorrent.js +++ b/common/modules/webtorrent.js @@ -231,11 +231,12 @@ export default class TorrentClient extends WebTorrent { return } localStorage.setItem('lastFinished', 'false') - if (this.torrents.length) await this.remove(this.torrents[0]) + if (this.torrents.length) { + await this.remove(this.torrents[0], { destroyStore: !this.settings.torrentPersist }) + } const torrent = await this.add(data, { private: this.settings.torrentPeX, path: this.torrentPath || undefined, - destroyStoreOnDestroy: !this.settings.torrentPersist, skipVerify, announce, deselect: this.settings.torrentStreamedDownload