gmethvin / directory-watcher

A cross-platform Java recursive directory watcher, with a JNA macOS watcher and Scala better-files integration
Apache License 2.0
264 stars 34 forks source link

Don't throw if watcher is closed while watch() is running #80

Closed gmethvin closed 2 years ago

gmethvin commented 2 years ago

We now no longer throw if poll() throws a ClosedWatchServiceException, but we will throw if watch() is called on a closed watcher.

Fixes #79.