Commit e86bdc79 authored by Vladimir Vivien's avatar Vladimir Vivien

Forces fsnotify CREATE and REMOVE to occur serially

parent ce68cfa4
...@@ -111,7 +111,7 @@ func (w *Watcher) Start() error { ...@@ -111,7 +111,7 @@ func (w *Watcher) Start() error {
//TODO: Handle errors by taking corrective measures //TODO: Handle errors by taking corrective measures
w.wg.Add(1) w.wg.Add(1)
go func() { func() {
defer w.wg.Done() defer w.wg.Done()
if event.Op&fsnotify.Create == fsnotify.Create { if event.Op&fsnotify.Create == fsnotify.Create {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment