Read in tagger config on startup. Safeguard watcher shutdown

This commit is contained in:
2025-05-20 07:10:15 +02:00
parent 85f17c0fd8
commit 9abc206d1a
2 changed files with 5 additions and 1 deletions

View File

@@ -44,7 +44,9 @@ func AddListener(path string, l Listener) {
}
func FsWatcherShutdown() {
w.Close()
if w != nil {
w.Close()
}
}
func watchLoop(w *fsnotify.Watcher) {