mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-11 19:21:32 +09:00
a48a42baf4
After Remove/Rename, the extra-records filewatcher retried with context.Background and the default 15-minute backoff budget, so Close could not stop Run. Cancel that retry when closeCh closes. If the file is still missing after the budget, watch the parent directory so a later recreate is seen. Close the fsnotify watcher on NewExtraRecordsManager error paths after NewWatcher succeeds. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>