Open luedigernet opened 7 years ago
Hi the increments should be surrounded with an Mutex to synchronize the write access to the variable. Because of concurrent go routines.
go-fswatch/file.go: 87 88 // increment watcher count 89: numberOfFileWatchers++ 90 91 var modTime time.Time
go-fswatch/folder.go: 119 120 // increment watcher count 121: numberOfFolderWatchers++ 122 123 for folderWatcher.wasStopped == false {
Hi the increments should be surrounded with an Mutex to synchronize the write access to the variable. Because of concurrent go routines.
go-fswatch/file.go: 87
88 // increment watcher count 89: numberOfFileWatchers++ 90
91 var modTime time.Time
go-fswatch/folder.go: 119
120 // increment watcher count 121: numberOfFolderWatchers++ 122
123 for folderWatcher.wasStopped == false {