Commit fbf81bc7 authored by hzxuzhonghu's avatar hzxuzhonghu

fix underlying bug: double close channel when stop

parent bfe581d9
...@@ -342,6 +342,9 @@ func (gb *GraphBuilder) Run(stopCh <-chan struct{}) { ...@@ -342,6 +342,9 @@ func (gb *GraphBuilder) Run(stopCh <-chan struct{}) {
close(monitor.stopCh) close(monitor.stopCh)
} }
} }
// reset monitors so that the graph builder can be safely re-run/synced.
gb.monitors = nil
glog.Infof("stopped %d of %d monitors", stopped, len(monitors)) glog.Infof("stopped %d of %d monitors", stopped, len(monitors))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment