mirror of
https://github.com/moby/moby.git
synced 2026-08-05 07:30:57 +00:00
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:
@@ -265,6 +265,7 @@ func (c *controller) clusterAgentInit() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
c.agentInitDone = make(chan struct{})
|
||||
c.agentClose()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user