Browse Source

Merge pull request #55 from lightglitch/master

Stop leafs first
pull/56/head
Decebal Suiu 10 years ago
parent
commit
59423bb21f
  1. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

2
pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

@ -325,7 +325,7 @@ public class DefaultPluginManager implements PluginManager {
while (!dependents.isEmpty()) { while (!dependents.isEmpty()) {
String dependent = dependents.remove(0); String dependent = dependents.remove(0);
stopPlugin(dependent, false); stopPlugin(dependent, false);
dependents.addAll(dependencyResolver.getDependents(dependent)); dependents.addAll(0, dependencyResolver.getDependents(dependent));
} }
} }

Loading…
Cancel
Save