mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
fix not return when channel closed
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
parent
f1da8cd3e2
commit
3734e05e14
1 changed files with 1 additions and 0 deletions
|
|
@ -251,6 +251,7 @@ func getVersionPeriodically(stopCh <-chan struct{}) {
|
|||
}
|
||||
select {
|
||||
case <-stopCh:
|
||||
return
|
||||
case <-time.After(scrapeTimeout):
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue