Close auditStopCh if SecureServing encounters error

This commit is contained in:
Ted Yu 2019-06-19 12:01:57 -07:00 committed by Ted Yu
parent 1894889314
commit 9e01846815

View File

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