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:
parent
2f7943883f
commit
744313d253
1 changed files with 0 additions and 5 deletions
|
@ -155,11 +155,6 @@ func (tkr *Tracker) updatePeer(ann *models.Announce, peer *models.Peer) (created
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if ann.Event != "" && ann.Event != "started" {
|
|
||||||
err = models.ErrBadRequest
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if ann.Left == 0 {
|
if ann.Left == 0 {
|
||||||
err = tkr.PutSeeder(t.Infohash, p)
|
err = tkr.PutSeeder(t.Infohash, p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue