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:
authorFeross Aboukhadijeh <feross@feross.org>2015-04-11 09:18:04 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-04-11 09:18:04 +0300
commitb4ee1d4706eff6ccf8cf6b8c34f9ea424737a6f2 (patch)
tree6873f2525e05344a76d5ca9f076a7e851d25ab96 /lib/torrent.js
parent9cdb94e92feab5784f67f660816034a99cc0ee13 (diff)
Breaking: rename "blocked-peer" event to "blockedPeer"
Diffstat (limited to 'lib/torrent.js')
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 010f19f..6c65383 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -346,7 +346,7 @@ Torrent.prototype.addPeer = function (peer) {
&& self.client.blocked
&& self.client.blocked.contains(addrToIPPort(peer)[0])) {
self.numBlockedPeers += 1
- self.emit('blocked-peer', peer)
+ self.emit('blockedPeer', peer)
return false
} else {
self.emit('peer', peer)