Merge pull request #11 from ap-pauloafonso/fix-interval

fix interval
This commit is contained in:
ap-pauloafonso 2021-01-20 12:49:10 -03:00 committed by GitHub
commit bf8f931386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}
}