소스 검색

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

Ryan Huber 5 년 전
부모
커밋
df8e45c13b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 	}