mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-14 11:26:25 +00:00
Merge pull request #122 from DiegoRBaquero/patch-1
Delete peer on announce stopped
This commit is contained in:
commit
32c2e985fd
@ -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