summaryrefslogtreecommitdiff
path: root/service/reload/watcher.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-23 16:40:46 +0300
committerValery Piashchynski <[email protected]>2020-02-23 16:40:46 +0300
commitcd494bf847713a984811c5b5d972c47fc6a58168 (patch)
tree93e5ac48f549fa7b089059187a8e5d9a76dcee49 /service/reload/watcher.go
parent8602c72a17f8ecabef2355d1d24ad569239f7bfa (diff)
Fix GoExit issue
Diffstat (limited to 'service/reload/watcher.go')
-rw-r--r--service/reload/watcher.go3
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