mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +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) {
|
if eventOpIs(fsnotify.Write) || eventOpIs(fsnotify.Rename) {
|
||||||
// error out when ConfigFile is updated
|
// error out when ConfigFile is updated
|
||||||
o.errCh <- fmt.Errorf("content of the proxy server's configuration file was updated")
|
o.errCh <- fmt.Errorf("content of the proxy server's configuration file was updated")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
o.errCh <- nil
|
o.errCh <- nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user