tracker: rm badrequest when state is unknown

This assumption was just totally wrong. If there is any kind of packet
loss or the tracker starts up to a pre-existing swarm, all the peers
will get bad request responses.
This commit is contained in:
Jimmy Zelinskie 2015-06-26 22:49:09 -04:00
parent 2f7943883f
commit 744313d253

View file

@ -155,11 +155,6 @@ func (tkr *Tracker) updatePeer(ann *models.Announce, peer *models.Peer) (created
}
default:
if ann.Event != "" && ann.Event != "started" {
err = models.ErrBadRequest
return
}
if ann.Left == 0 {
err = tkr.PutSeeder(t.Infohash, p)
if err != nil {