mirror of
https://github.com/logos-storage/bittorrent-tracker.git
synced 2026-01-10 00:43:09 +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…
x
Reference in New Issue
Block a user