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:
parent
c2662da3e9
commit
3eff69860d
1 changed files with 1 additions and 0 deletions
|
@ -265,6 +265,7 @@ func (c *controller) clusterAgentInit() {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
c.agentInitDone = make(chan struct{})
|
||||
c.agentClose()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue