Merge pull request #107542 from kerthcet/feature/fix-not-return-when-channel-closed

fix not return when channel closed
This commit is contained in:
Kubernetes Prow Robot 2022-01-19 00:26:06 -08:00 committed by GitHub
commit 9828835f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,6 +251,7 @@ func getVersionPeriodically(stopCh <-chan struct{}) {
}
select {
case <-stopCh:
return
case <-time.After(scrapeTimeout):
}
}