Merge pull request #79181 from tedyu/close-audit-ch

Close auditStopCh if SecureServing encounters error
This commit is contained in:
Kubernetes Prow Robot 2019-06-22 22:55:55 -07:00 committed by GitHub
commit fa9fd6522a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,6 +328,7 @@ func (s preparedGenericAPIServer) NonBlockingRun(stopCh <-chan struct{}) error {
stoppedCh, err = s.SecureServingInfo.Serve(s.Handler, s.ShutdownTimeout, internalStopCh)
if err != nil {
close(internalStopCh)
close(auditStopCh)
return err
}
}