diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-04-21 11:47:01 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-04-21 11:47:01 +0300 |
commit | 0a22dc73c15eb9e74a3c0c13f570a76516e41799 (patch) | |
tree | faca8b7df3bab2db600a21b02642fcb0f9198c0c /lib | |
parent | 08baee2ddd7a194d44fc797e704b7a6b71304423 (diff) |
client: cleanup event listeners
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 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 |