Skip to content

Commit

Permalink
Cleanup the cluster provider when the agent is closed
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Wuolle <[email protected]>
  • Loading branch information
kylewuolle committed Jan 25, 2019
1 parent c6f724c commit c7125bd
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 c7125bd

Please sign in to comment.