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 549c476853..e0c1ce7d8b 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() } }