Skip to content

Commit cb2211c

Browse files
committed
If peer is already complete, it should still be refreshed in the LRU cache
1 parent 8c5a77b commit cb2211c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server/swarm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ Swarm.prototype._onAnnounceUpdate = function (params, peer, id) {
102102
this.complete += 1
103103
this.incomplete -= 1
104104
peer.complete = true
105-
this.peers.set(id, peer)
106105
}
106+
this.peers.set(id, peer)
107107
}
108108

109109
Swarm.prototype._getPeers = function (numwant, ownPeerId, isWebRTC) {

0 commit comments

Comments
 (0)