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:
authorAlex <alxmorais8@msn.com>2021-05-21 17:59:21 +0300
committerGitHub <noreply@github.com>2021-05-21 17:59:21 +0300
commit633b9224b7c7176599a5e53775de1a48d8e864b5 (patch)
treed18d09c9b0ba4cd2ecdc940a8a9ca5d0e6d0f057 /lib
parent6ba44c444f6af6f070c3059ad00ca2d10868058d (diff)
fix: getAnnounceOpts (#2075)
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 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,