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>2017-02-03 03:30:48 +0300
committerFeross Aboukhadijeh <feross@feross.org>2017-02-03 03:30:48 +0300
commitf28138da19ee3b478467973d2cd52451be835e85 (patch)
treed55e0be505069dde9ff1ab738b180c08e6f93389 /lib
parent9e09ac98fe3750486ab80593eea65e2da656154d (diff)
Don't print debug log after torrent is destroyed
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index ab2dcda..7ff039e 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -756,7 +756,6 @@ Torrent.prototype.addPeer = function (peer) {
Torrent.prototype._addPeer = function (peer) {
var self = this
if (self.destroyed) {
- self._debug('ignoring peer: torrent is destroyed')
if (typeof peer !== 'string') peer.destroy()
return null
}