fix underlying bug: double close channel when stop
This commit is contained in:
@@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user