Delete peer on announce stopped

This commit is contained in:
Diego Rodríguez Baquero 2016-03-11 01:10:34 -03:00
parent 7406750b74
commit e185f321d3

View File

@ -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) {