diff options
author | Julen Garcia Leunda <hicom150@gmail.com> | 2021-08-26 00:14:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 00:14:51 +0300 |
commit | c5437886086f455c61f0ff71bbfecd3f9e6b2609 (patch) | |
tree | c5a94545bc04aa90b218122df5fa66b029acf23b /lib/torrent.js | |
parent | 4954f4f5b85333f6f740bebc3c4bab62a415c1dd (diff) |
fix: handle done event when new files selected (#2183)
Diffstat (limited to 'lib/torrent.js')
-rw-r--r-- | lib/torrent.js | 2 |
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() |