diff options
Diffstat (limited to 'config/serve.go')
-rw-r--r-- | config/serve.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/config/serve.go b/config/serve.go index 6f49d0da..70a4e896 100644 --- a/config/serve.go +++ b/config/serve.go @@ -44,19 +44,18 @@ func ReadConfigfileServe(path, format string, configCh chan *BgpConfigSet) { } cnt++ configCh <- c - select { - case <-sigCh: - log.Info("reload the config file") - } - continue + goto NEXT ERROR: if cnt == 0 { log.Fatal("can't read config file ", path, ", ", err) } else { log.Warning("can't read config file ", path, ", ", err) - continue } - + NEXT: + select { + case <-sigCh: + log.Info("reload the config file") + } } } |