mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
Fixed concurrent modification on FileWatcher
This commit is contained in:
parent
1f341c0921
commit
d2551a206d
@ -116,7 +116,7 @@ public class FileWatcher extends Thread {
|
||||
}
|
||||
|
||||
private void actOnModification(Path modifiedFile) {
|
||||
for (WatchedFile watchedFile : watchedFiles) {
|
||||
for (WatchedFile watchedFile : new HashSet<>(watchedFiles)) {
|
||||
watchedFile.modified(modifiedFile);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user