Skip to content

Commit

Permalink
Merge pull request #357 from wonderflow/removedir
Browse files Browse the repository at this point in the history
remove runner when dir not exist
  • Loading branch information
wonderflow committed Mar 5, 2018
2 parents 4047ced + f18ad11 commit 66b1620
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mgr/mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ func (m *Manager) handle(path string, watcher *fsnotify.Watcher) {
m.watcherMux.Lock()
delete(m.watchers, path)
m.watcherMux.Unlock()
// TODO 此处代表文件夹被删了,只移除一个runner可能不够,文件夹下会有其他runner没有被删除
m.Remove(ev.Name)
return
}
m.Remove(ev.Name)
Expand Down

0 comments on commit 66b1620

Please sign in to comment.