]> source.dussan.org Git - pf4j.git/commitdiff
Stop leafs first 55/head
authorMário Franco <mario.ffranco@gmail.com>
Mon, 20 Jul 2015 12:48:51 +0000 (13:48 +0100)
committerMário Franco <mario.ffranco@gmail.com>
Mon, 20 Jul 2015 12:48:51 +0000 (13:48 +0100)
pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

index d73a5ea4906279a7aee49c879146eecd1756ca1f..dfa531e80834bd27fca9e1b8182a5a5f8fa0443c 100644 (file)
@@ -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));
             }
         }