diff --git a/lib/server/swarm.js b/lib/server/swarm.js index 2c6f49a..5c914c9 100644 --- a/lib/server/swarm.js +++ b/lib/server/swarm.js @@ -73,7 +73,7 @@ Swarm.prototype._onAnnounceStarted = function (params, peer, id) { if (params.left === 0) this.complete += 1 else this.incomplete += 1 - peer = this.peers.set(id, { + this.peers.set(id, { type: params.type, complete: params.left === 0, peerId: params.peer_id, // as hex