diff --git a/lib/server/swarm.js b/lib/server/swarm.js index f8d8a44..6480052 100644 --- a/lib/server/swarm.js +++ b/lib/server/swarm.js @@ -102,8 +102,8 @@ Swarm.prototype._onAnnounceUpdate = function (params, peer, id) { this.complete += 1 this.incomplete -= 1 peer.complete = true - this.peers.set(id, peer) } + this.peers.set(id, peer) } Swarm.prototype._getPeers = function (numwant, ownPeerId, isWebRTC) {