Skip to content

Commit

Permalink
fixing concurrentModificationException HotswapProjects#155
Browse files Browse the repository at this point in the history
  • Loading branch information
niravpat committed Nov 5, 2016
1 parent eabcb69 commit 53a9bfa
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 53a9bfa

Please sign in to comment.