Forces fsnotify CREATE and REMOVE to occur serially

This commit is contained in:
Vladimir Vivien 2018-11-26 22:11:47 -05:00
parent ce68cfa453
commit e86bdc7989

View File

@ -111,7 +111,7 @@ func (w *Watcher) Start() error {
//TODO: Handle errors by taking corrective measures
w.wg.Add(1)
go func() {
func() {
defer w.wg.Done()
if event.Op&fsnotify.Create == fsnotify.Create {