소스 검색

Merge pull request #513 from ChannelMeter/fix/refresh-unless-discover

Refresh ring only if DiscoverHosts is true in control connection
Chris Bannister 10 년 전
부모
커밋
ad901edec6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      control.go

+ 1 - 1
control.go

@@ -103,7 +103,7 @@ func (c *controlConn) reconnect(refreshring bool) {
 		oldConn.Close()
 	}
 
-	if refreshring {
+	if refreshring && c.session.cfg.DiscoverHosts {
 		c.session.hostSource.refreshRing()
 	}
 }