diff options
Diffstat (limited to 'service/reload/watcher.go')
-rw-r--r-- | service/reload/watcher.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/reload/watcher.go b/service/reload/watcher.go index 6c0ba86c..3596ae73 100644 --- a/service/reload/watcher.go +++ b/service/reload/watcher.go @@ -382,6 +382,7 @@ func (w *Watcher) pollEvents(serviceName string, files map[string]os.FileInfo) { //Send all the remaining create and remove events. for pth, info := range creates { + w.watcherConfigs[serviceName].files[pth] = info w.Event <- Event{ path: pth, info: info, @@ -389,6 +390,7 @@ func (w *Watcher) pollEvents(serviceName string, files map[string]os.FileInfo) { } } for pth, info := range removes { + delete(w.watcherConfigs[serviceName].files, pth) w.Event <- Event{ path: pth, info: info, |