mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Early return after sending to errCh in Options#eventHandler
This commit is contained in:
parent
1ade4ce269
commit
f1b314bf5a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user