diff options
Diffstat (limited to 'service/reload/watcher.go')
-rw-r--r-- | service/reload/watcher.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/service/reload/watcher.go b/service/reload/watcher.go index a3b8fe1f..027d2d0d 100644 --- a/service/reload/watcher.go +++ b/service/reload/watcher.go @@ -5,7 +5,6 @@ import ( "io/ioutil" "os" "path/filepath" - "runtime" "sync" "time" ) @@ -228,7 +227,7 @@ func (w *Watcher) waitEvent(d time.Duration) error { ticker.Stop() // just exit // no matter for the pollEvents - runtime.Goexit() + return nil case <-ticker.C: // this is not very effective way // because we have to wait on Lock |