+Problems

This commit is contained in:
Simon Martens
2024-11-15 14:03:00 +01:00
parent 20a660077f
commit a015b0fe6b
2 changed files with 1 additions and 2 deletions

View File

@@ -6,7 +6,6 @@ import (
"log"
"path/filepath"
"sync"
"time"
"github.com/fsnotify/fsnotify"
)
@@ -99,7 +98,6 @@ func (fw *FileWatcher) Watch() error {
}
log.Println("event:", event)
if !event.Has(fsnotify.Chmod) {
time.Sleep(50 * time.Millisecond)
fw.mu.Lock()
for _, wf := range fw.wf {
wf(event.Name)