Skip to content

Commit

Permalink
Merge pull request #2354 from thaJeztah/18.09_backport_fix_agent_init…
Browse files Browse the repository at this point in the history
…_problem

[18.09 backport] Cleanup the cluster provider when the agent is closed
  • Loading branch information
mavenugo authored Apr 12, 2019
2 parents c902989 + a4080ed commit 24d94c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 24d94c2

Please sign in to comment.