469241 Use null WatchService as loop terminator for PathWatcher.
This commit is contained in:
parent
8c89f141ab
commit
2ff20414fa
|
@ -1244,7 +1244,7 @@ public class PathWatcher extends AbstractLifeCycle implements Runnable
|
||||||
LOG.debug("Starting java.nio file watching with {}",watchService);
|
LOG.debug("Starting java.nio file watching with {}",watchService);
|
||||||
}
|
}
|
||||||
|
|
||||||
while (true)
|
while (watchService != null)
|
||||||
{
|
{
|
||||||
WatchKey key = null;
|
WatchKey key = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue