mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #107542 from kerthcet/feature/fix-not-return-when-channel-closed
fix not return when channel closed
This commit is contained in:
commit
9828835f66
@ -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