1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #2307 from kylewuolle/fix-agent-init-problem

Fix for problem where agent is stopped and does not restart
This commit is contained in:
Flavio Crisciani 2019-01-28 11:55:51 -08:00 committed by GitHub
commit 4c015269c5

View file

@ -378,6 +378,9 @@ func (c *controller) agentClose() {
c.agent = nil
c.Unlock()
// when the agent is closed the cluster provider should be cleaned up
c.SetClusterProvider(nil)
if agent == nil {
return
}