We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c2a1a commit f1cc540Copy full SHA for f1cc540
lib/swarm.js
@@ -47,7 +47,7 @@ Swarm.prototype._onAnnounce_started = function (params, peer) {
47
if (params.left === 0) this.complete += 1
48
else this.incomplete += 1
49
peer = this.peers[params.addr || params.peer_id] = {
50
- complete: false,
+ complete: params.left === 0,
51
ip: params.ip, // only http+udp
52
peerId: params.peer_id, // as hex
53
port: params.port, // only http+udp
0 commit comments