mirror of
https://github.com/ap-pauloafonso/ratio-spoof.git
synced 2026-01-11 20:10:22 +00:00
fix interval
This commit is contained in:
parent
b7f0fbaa85
commit
e96353a248
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue