ソースを参照

Cleanup the cluster provider when the agent is closed

Signed-off-by: Kyle Wuolle <kyle.wuolle@gmail.com>
Kyle Wuolle 6 年 前
コミット
7ca0bc66d3
1 ファイル変更3 行追加0 行削除
  1. 3 0
      libnetwork/agent.go

+ 3 - 0
libnetwork/agent.go

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