diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java index d73a5ea..dfa531e 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java @@ -325,7 +325,7 @@ public class DefaultPluginManager implements PluginManager { while (!dependents.isEmpty()) { String dependent = dependents.remove(0); stopPlugin(dependent, false); - dependents.addAll(dependencyResolver.getDependents(dependent)); + dependents.addAll(0, dependencyResolver.getDependents(dependent)); } }