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

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
}
}