Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulen Garcia Leunda <hicom150@gmail.com>2021-08-26 00:14:51 +0300
committerGitHub <noreply@github.com>2021-08-26 00:14:51 +0300
commitc5437886086f455c61f0ff71bbfecd3f9e6b2609 (patch)
treec5a94545bc04aa90b218122df5fa66b029acf23b /lib
parent4954f4f5b85333f6f740bebc3c4bab62a415c1dd (diff)
fix: handle done event when new files selected (#2183)
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 7e98a8e..3d4730f 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -1697,6 +1697,8 @@ class Torrent extends EventEmitter {
this.done = true
this._debug(`torrent done: ${this.infoHash}`)
this.emit('done')
+ } else {
+ this.done = false
}
this._gcSelections()