mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
fix underlying bug: double close channel when stop
This commit is contained in:
parent
bfe581d9e5
commit
fbf81bc7ad
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user