469241 Use null WatchService as loop terminator for PathWatcher.

This commit is contained in:
Jan Bartel 2015-06-10 14:50:26 +10:00
parent 8c89f141ab
commit 2ff20414fa
1 changed files with 1 additions and 1 deletions

View File

@ -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;