Skip to content

Commit

Permalink
Merge pull request #156 from nirav7715/#155
Browse files Browse the repository at this point in the history
fixing concurrentModificationException #155
  • Loading branch information
skybber authored Nov 5, 2016
2 parents eabcb69 + 53a9bfa commit d6a3c40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private void callListeners(final WatchEvent<?> event, final Path path) {
for (Map.Entry<Path, List<WatchEventListener>> list : listeners.entrySet()) {
if (path.startsWith(list.getKey())) {
matchedOne = true;
for (WatchEventListener listener : list.getValue()) {
for (WatchEventListener listener : new ArrayList<>(list.getValue())) {
WatchFileEvent agentEvent = new HotswapWatchFileEvent(event, path);
try {
listener.onEvent(agentEvent);
Expand Down

0 comments on commit d6a3c40

Please sign in to comment.