Explorar o código

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

Ryan Huber %!s(int64=5) %!d(string=hai) anos
pai
achega
df8e45c13b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lighthouse.go

+ 1 - 1
lighthouse.go

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