forked from I2P_Developers/i2p.i2p
Don't grab the ClientApp if we don't need to
This commit is contained in:
@ -671,9 +671,9 @@ public class PluginStarter implements Runnable {
|
|||||||
for(ClientAppConfig app : apps) {
|
for(ClientAppConfig app : apps) {
|
||||||
// If the client is a running ClientApp that we want to stop,
|
// If the client is a running ClientApp that we want to stop,
|
||||||
// bypass all the logic below.
|
// bypass all the logic below.
|
||||||
ClientApp ca = ctx.routerAppManager().getClientApp(app.className, LoadClientAppsJob.parseArgs(app.args));
|
if (action.equals("stop")) {
|
||||||
if (ca != null && ca.getState() == ClientAppState.RUNNING) {
|
ClientApp ca = ctx.routerAppManager().getClientApp(app.className, LoadClientAppsJob.parseArgs(app.args));
|
||||||
if (action.equals("stop")) {
|
if (ca != null && ca.getState() == ClientAppState.RUNNING) {
|
||||||
try {
|
try {
|
||||||
ca.shutdown(LoadClientAppsJob.parseArgs(app.stopargs));
|
ca.shutdown(LoadClientAppsJob.parseArgs(app.stopargs));
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
Reference in New Issue
Block a user