]> go.fuhry.dev Git - fsnotify.git/commitdiff
BSD - Fix recreate file test
authorChris Howey <chris@howey.me>
Tue, 9 Oct 2012 01:57:32 +0000 (20:57 -0500)
committerChris Howey <chris@howey.me>
Tue, 9 Oct 2012 01:57:32 +0000 (20:57 -0500)
fsnotify_bsd.go

index 6d1788e06ad6d357411d02be22d77f8e13e349c3..602bd4dd90648447c9b6b9b05d59839db07b8f24 100644 (file)
@@ -258,6 +258,7 @@ func (w *Watcher) readEvents() {
                                delete(w.fileExists, fileEvent.Name)
                        }
                        if fileEvent.IsDelete() {
+                               w.removeWatch(fileEvent.Name)
                                delete(w.fileExists, fileEvent.Name)
                        }
                }