diff options
Diffstat (limited to 'lib/torrent.js')
-rw-r--r-- | lib/torrent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 9f8cc2d..214b49a 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -395,8 +395,8 @@ Torrent.prototype.addPeer = function (peer) { var self = this function addPeer () { - self.emit('peer', peer) self.swarm.addPeer(peer) + self.emit('peer', peer) } // TODO: extract IP address from peer object and check blocklist |