Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
fix: Fixed ConcurrentModificationException
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeV220 committed Jun 11, 2023
1 parent 3cf64c9 commit 7dc98f9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ public void load(@NotNull Dependency d, boolean pathCheck) throws InvalidDepende
* @throws InvalidDependencyException if the dependency is not loaded or cannot be unloaded
*/
public void unloadAll() throws InvalidDependencyException {
for (Dependency d : dependencyList) {
List<Dependency> dependencies = new ArrayList<>(dependencyList);
for (Dependency d : dependencies) {
unload(d);
}
}
Expand Down

0 comments on commit 7dc98f9

Please sign in to comment.