mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
fix not return when channel closed
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
parent
f1da8cd3e2
commit
3734e05e14
@ -251,6 +251,7 @@ func getVersionPeriodically(stopCh <-chan struct{}) {
|
||||
}
|
||||
select {
|
||||
case <-stopCh:
|
||||
return
|
||||
case <-time.After(scrapeTimeout):
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user