mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fffa8958d0
The code in Close() that removes the watches was not working, because it first sets `w.closed = true` and then calls w.close(), which starts with ``` if w.closed { return errPollerClosed } ``` Fix by setting w.closed only after calling w.remove() for all the files being watched. While at it, remove the duplicated `delete(w.watches, name)` code. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> |
||
---|---|---|
.. | ||
filenotify.go | ||
fsnotify.go | ||
poller.go | ||
poller_test.go |