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:
authorFeross Aboukhadijeh <feross@feross.org>2016-04-21 11:47:01 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-04-21 11:47:01 +0300
commit0a22dc73c15eb9e74a3c0c13f570a76516e41799 (patch)
treefaca8b7df3bab2db600a21b02642fcb0f9198c0c /lib
parent08baee2ddd7a194d44fc797e704b7a6b71304423 (diff)
client: cleanup event listeners
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 296f579..ec1c422 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -577,6 +577,8 @@ Torrent.prototype._destroy = function (err, cb) {
}
}
+ self.emit('close')
+
self.client = null
self.files = []
self.discovery = null