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
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.js b/index.js
index ec516a0..9f3f242 100644
--- a/index.js
+++ b/index.js
@@ -424,6 +424,9 @@ class WebTorrent extends EventEmitter {
if (!torrent) return
this.torrents.splice(this.torrents.indexOf(torrent), 1)
torrent.destroy(opts, cb)
+ if (this.dht) {
+ this.dht._tables.remove(torrent.infoHash)
+ }
}
address () {