From e325492b82e97dec8208f8a2362ee9efe9023261 Mon Sep 17 00:00:00 2001 From: Nicolas Martin Date: Thu, 3 Jan 2019 15:31:09 +0100 Subject: [PATCH] Add missing call to initWF.Done() --- viper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/viper.go b/viper.go index 74ea372..363a6f3 100644 --- a/viper.go +++ b/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 }