Revert "Handle the case of reseting the Cluster Provider for leave caes"

This commit is contained in:
Jana Radhakrishnan 2016-06-09 20:18:49 -07:00 committed by GitHub
parent bc147ce99d
commit cd1362e370

View file

@ -218,9 +218,7 @@ func New(cfgOptions ...config.Option) (NetworkController, error) {
func (c *controller) SetClusterProvider(provider cluster.Provider) {
c.cfg.Daemon.ClusterProvider = provider
if provider != nil {
go c.clusterAgentInit()
}
go c.clusterAgentInit()
}
func isValidClusteringIP(addr string) bool {
@ -263,7 +261,6 @@ func (c *controller) clusterAgentInit() {
} else {
c.agentInitDone = make(chan struct{})
c.agentClose()
return
}
}
}