evaluate confwatcher event paths to ensure consistency with stored path (#2586)
Co-authored-by: James Bohnert <jbohnert@haivision.com>
This commit is contained in:
parent
6d27d690dc
commit
88dd8d23f4
|
@ -90,6 +90,7 @@ outer:
|
|||
|
||||
currentWatchedPath, _ := filepath.EvalSymlinks(w.watchedPath)
|
||||
eventPath, _ := filepath.Abs(event.Name)
|
||||
eventPath, _ = filepath.EvalSymlinks(eventPath)
|
||||
|
||||
if currentWatchedPath == "" {
|
||||
// watched file was removed; wait for write event to trigger reload
|
||||
|
|
Loading…
Reference in New Issue