Browse Source

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

Refresh ring only if DiscoverHosts is true in control connection
Chris Bannister 10 years ago
parent
commit
ad901edec6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      control.go

+ 1 - 1
control.go

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