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:
commit
4c015269c5
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue