diff options
author | Alex <alxmorais8@msn.com> | 2021-05-21 17:59:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 17:59:21 +0300 |
commit | 633b9224b7c7176599a5e53775de1a48d8e864b5 (patch) | |
tree | d18d09c9b0ba4cd2ecdc940a8a9ca5d0e6d0f057 /lib | |
parent | 6ba44c444f6af6f070c3059ad00ca2d10868058d (diff) |
fix: getAnnounceOpts (#2075)
Diffstat (limited to 'lib')
-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 c87c079..8ab87ff 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -310,6 +310,8 @@ class Torrent extends EventEmitter { if (trackerOpts) { trackerOpts = Object.assign({}, this.client.tracker, { getAnnounceOpts: () => { + if (this.destroyed) return + const opts = { uploaded: this.uploaded, downloaded: this.downloaded, |