Don't error if the client is sending a started event

This commit is contained in:
Justin Li 2014-07-23 01:20:25 -04:00
parent e7481b31c1
commit 9054c1364a

View file

@ -114,7 +114,7 @@ func updateSwarm(c Conn, w Writer, ann *models.Announce, p *models.Peer, t *mode
t.Leechers[p.ID] = *p t.Leechers[p.ID] = *p
default: default:
if ann.Event != "" { if ann.Event != "" && ann.Event != "started" {
err = models.ErrBadRequest err = models.ErrBadRequest
w.WriteError(err) w.WriteError(err)
return return