fix interval

This commit is contained in:
ap-pauloafonso 2021-01-20 12:48:08 -03:00
parent b7f0fbaa85
commit e96353a248

View file

@ -266,10 +266,10 @@ func (R *ratioSpoofState) firstAnnounce() {
}
func (R *ratioSpoofState) updateInterval(resp trackerResponse) {
if resp.minInterval > 0 {
R.announceInterval = resp.minInterval
} else {
if resp.interval > 0 {
R.announceInterval = resp.interval
} else {
R.announceInterval = 1800
}
}