mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +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:
@@ -251,6 +251,7 @@ func getVersionPeriodically(stopCh <-chan struct{}) {
|
|||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
case <-stopCh:
|
case <-stopCh:
|
||||||
|
return
|
||||||
case <-time.After(scrapeTimeout):
|
case <-time.After(scrapeTimeout):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user