Changeset 4ffbfce


Ignore:
Timestamp:
Mar 19, 2012 12:37:39 PM (8 years ago)
Author:
sponge <sponge@…>
Branches:
master
Children:
444ba47
Parents:
d1ed30e
Message:

Plugins: Order and reverse order plugin names for start/stop all cases.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/PluginStarter.java

    rd1ed30e r4ffbfce  
    99import java.util.Arrays;
    1010import java.util.Collection;
     11import java.util.Collections;
    1112import java.util.HashMap;
    1213import java.util.Iterator;
     
    538539                rv.add(files[i].getName());
    539540        }
     541        Collections.sort(rv); // ensure the list is in sorted order.
    540542        return rv;
    541543    }
  • apps/routerconsole/java/src/net/i2p/router/web/PluginStopper.java

    rd1ed30e r4ffbfce  
    11package net.i2p.router.web;
    22
     3import java.util.Collections;
     4import java.util.List;
    35import net.i2p.router.RouterContext;
    46import net.i2p.util.Log;
     
    2830    private static void stopPlugins(RouterContext ctx) {
    2931        Log log = ctx.logManager().getLog(PluginStopper.class);
    30         for (String app : getPlugins()) {
     32        List<String> pl = getPlugins();
     33        Collections.reverse(pl); // reverse the order
     34        for (String app : pl) {
    3135            if (isPluginRunning(app, ctx)) {
    3236                try {
  • history.txt

    rd1ed30e r4ffbfce  
    112012-03-19 sponge
    2   * Plugins: less confusing message, fix CNFE by catch and ignore on delete.
     2  * Plugins: Less confusing message, fix CNFE by catch and ignore on delete.
     3             Order and reverse order plugin names for start/stop all cases.
    34
    452012-03-17 zzz
Note: See TracChangeset for help on using the changeset viewer.