mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-11 17:45:32 +00:00
fix: destroy store correctly
This commit is contained in:
parent
4f9fbb8806
commit
11ccef2287
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue