mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-23 16:05:00 +00:00
There is a race between the doStop clearing the key map and the watching thread checking isRunning before iterating over the key map. While more sophisticated approaches could be used, I think that is best to defer until this class is reworked entirely. For now just using a ConcurrentHashMap will avoid the exception and the closing of the pathwatcher will prevent watching forever. Signed-off-by: Greg Wilkins <gregw@webtide.com>