mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
Add missing call to initWF.Done()
This commit is contained in:
parent
d104d259b3
commit
b9393974d8
1 changed files with 1 additions and 0 deletions
1
viper.go
1
viper.go
|
@ -292,6 +292,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…
Add table
Reference in a new issue