mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
release filewatcher channels
This commit is contained in:
@@ -88,6 +88,10 @@ func (h *DirWatcher) cleanup() {
|
||||
h.w.Close()
|
||||
close(h.eventCh)
|
||||
close(h.errCh)
|
||||
h.fwMap.RangeAll(func(key string, fw *fileWatcher) {
|
||||
close(fw.eventCh)
|
||||
close(fw.errCh)
|
||||
})
|
||||
h.task.Finish(nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user