if interval is 0 don't even update lh (mobile use case)

This commit is contained in:
Ryan Huber committed 2019-12-26 21:12:31 +00:00
1 parent 0eb5ce6b41
commit df8e45c13b
1 file changed
+1 -1
+1 -1
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
}