mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31:36 +00:00
If peer is already complete, it should still be refreshed in the LRU cache
This commit is contained in:
parent
c2c8e36af7
commit
ed3da2f39b
@ -102,8 +102,8 @@ Swarm.prototype._onAnnounceUpdate = function (params, peer, id) {
|
|||||||
this.complete += 1
|
this.complete += 1
|
||||||
this.incomplete -= 1
|
this.incomplete -= 1
|
||||||
peer.complete = true
|
peer.complete = true
|
||||||
this.peers.set(id, peer)
|
|
||||||
}
|
}
|
||||||
|
this.peers.set(id, peer)
|
||||||
}
|
}
|
||||||
|
|
||||||
Swarm.prototype._getPeers = function (numwant, ownPeerId, isWebRTC) {
|
Swarm.prototype._getPeers = function (numwant, ownPeerId, isWebRTC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user