From 3eff69860d9258fd0ce0646620ef2d39b299f338 Mon Sep 17 00:00:00 2001 From: Jana Radhakrishnan Date: Mon, 6 Jun 2016 11:35:35 -0700 Subject: [PATCH] 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 --- libnetwork/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libnetwork/controller.go b/libnetwork/controller.go index 549c47685313c45aca275ed664608d31ba0ca604..e0c1ce7d8b28d0a0378168eb98d75a184c5066b5 100644 --- a/libnetwork/controller.go +++ b/libnetwork/controller.go @@ -265,6 +265,7 @@ func (c *controller) clusterAgentInit() { } } } else { + c.agentInitDone = make(chan struct{}) c.agentClose() } }