mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 18:31:24 +02:00
Add clarifying comment
This commit is contained in:
parent
f7f333ad52
commit
76a80ff034
@ -295,6 +295,9 @@ func configFilesWatcher(
|
|||||||
}
|
}
|
||||||
time.Sleep(100 * time.Millisecond)
|
time.Sleep(100 * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
// fsnotify removes the file from the watch list on rename events,
|
||||||
|
// add it back.
|
||||||
|
// See https://github.com/fsnotify/fsnotify/issues/214
|
||||||
err := watcher.Add(mainFileAbsPath)
|
err := watcher.Add(mainFileAbsPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
onErr(fmt.Errorf("watching file:", err))
|
onErr(fmt.Errorf("watching file:", err))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user