From 60e048d2ce42baeb2c2050423024e0da53190a23 Mon Sep 17 00:00:00 2001 From: Alex Wong Date: Tue, 24 Sep 2019 16:02:28 +0800 Subject: [PATCH] fix close of closed channel --- pkg/custompluginmonitor/custom_plugin_monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/custompluginmonitor/custom_plugin_monitor.go b/pkg/custompluginmonitor/custom_plugin_monitor.go index bc4a273e..66a19079 100644 --- a/pkg/custompluginmonitor/custom_plugin_monitor.go +++ b/pkg/custompluginmonitor/custom_plugin_monitor.go @@ -137,7 +137,7 @@ func (c *customPluginMonitor) monitorLoop() { c.plugin.Stop() glog.Infof("Custom plugin monitor stopped: %s", c.configPath) c.tomb.Done() - break + return } } }