mirror of
https://github.com/spf13/viper
synced 2024-11-04 20:27:02 +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()
|
filename, err := v.getConfigFile()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("error: %v\n", err)
|
log.Printf("error: %v\n", err)
|
||||||
|
initWG.Done()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue