mirror of
https://github.com/spf13/viper
synced 2025-01-05 18:26:37 +00:00
Add missing call to initWF.Done()
This commit is contained in:
parent
e6d1c6bc9a
commit
e325492b82
1 changed files with 1 additions and 0 deletions
1
viper.go
1
viper.go
|
@ -295,6 +295,7 @@ func (v *Viper) WatchConfig() {
|
|||
filename, err := v.getConfigFile()
|
||||
if err != nil {
|
||||
log.Printf("error: %v\n", err)
|
||||
initWG.Done()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue