mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
Delete peer on announce stopped
This commit is contained in:
parent
7406750b74
commit
e185f321d3
@ -66,7 +66,7 @@ Swarm.prototype._onAnnounceStopped = function (params, peer) {
|
||||
|
||||
if (peer.complete) this.complete -= 1
|
||||
else this.incomplete -= 1
|
||||
this.peers[params.addr || params.peer_id] = null
|
||||
delete this.peers[params.addr || params.peer_id]
|
||||
}
|
||||
|
||||
Swarm.prototype._onAnnounceCompleted = function (params, peer) {
|
||||
|
Loading…
Reference in New Issue
Block a user