Merge pull request #82193 from yutedz/svr-evt-ret

Early return after sending to errCh in Options#eventHandler
This commit is contained in:
Kubernetes Prow Robot 2019-09-11 10:40:30 -07:00 committed by GitHub
commit 681df277f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,6 +252,7 @@ func (o *Options) eventHandler(ent fsnotify.Event) {
if eventOpIs(fsnotify.Write) || eventOpIs(fsnotify.Rename) {
// error out when ConfigFile is updated
o.errCh <- fmt.Errorf("content of the proxy server's configuration file was updated")
return
}
o.errCh <- nil
}