fix underlying bug: double close channel when stop

This commit is contained in:
hzxuzhonghu 2017-11-14 11:03:49 +08:00
parent bfe581d9e5
commit fbf81bc7ad

View File

@ -342,6 +342,9 @@ func (gb *GraphBuilder) Run(stopCh <-chan struct{}) {
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))
}