mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 21:01:40 +02:00
Read in tagger config on startup. Safeguard watcher shutdown
This commit is contained in:
@@ -44,7 +44,9 @@ func AddListener(path string, l Listener) {
|
||||
}
|
||||
|
||||
func FsWatcherShutdown() {
|
||||
w.Close()
|
||||
if w != nil {
|
||||
w.Close()
|
||||
}
|
||||
}
|
||||
|
||||
func watchLoop(w *fsnotify.Watcher) {
|
||||
|
Reference in New Issue
Block a user