Merge pull request #133 from slackhq/interval_zero_check

if interval is 0 don't even update lh (mobile use case)
This commit is contained in:
Ryan Huber 2019-12-26 15:57:01 -06:00 committed by GitHub
commit fd8ad5d0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ func NewIpAndPortsFromNetIps(ips []udpAddr) *[]*IpAndPort {
}
func (lh *LightHouse) LhUpdateWorker(f EncWriter) {
if lh.amLighthouse {
if lh.amLighthouse || lh.interval == 0 {
return
}