Reset agentInitDone channel when leaving a cluster

When leaving a cluster the agentInitDone should be re-initialized so tha
when a new cluster is initialized this is usable.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
Jana Radhakrishnan 2016-06-06 11:35:35 -07:00
parent c2662da3e9
commit 3eff69860d

View file

@ -265,6 +265,7 @@ func (c *controller) clusterAgentInit() {
}
}
} else {
c.agentInitDone = make(chan struct{})
c.agentClose()
}
}