From 5ea2832ae08643bb8aae718789070d4c14f5bf10 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Fri, 19 Apr 2013 11:41:35 +0000 Subject: [PATCH] * AppManager: Register jetty, console, and SAM with manager --- apps/jetty/java/src/net/i2p/jetty/JettyStart.java | 1 + .../java/src/net/i2p/router/web/RouterConsoleRunner.java | 2 ++ apps/sam/java/src/net/i2p/sam/SAMBridge.java | 2 ++ 3 files changed, 5 insertions(+) diff --git a/apps/jetty/java/src/net/i2p/jetty/JettyStart.java b/apps/jetty/java/src/net/i2p/jetty/JettyStart.java index af39687699..ffc6d8ce27 100644 --- a/apps/jetty/java/src/net/i2p/jetty/JettyStart.java +++ b/apps/jetty/java/src/net/i2p/jetty/JettyStart.java @@ -118,6 +118,7 @@ public class JettyStart implements ClientApp { } } changeState(RUNNING); + _mgr.register(JettyStart.this); } } diff --git a/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java b/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java index 55534dc061..dd481d48bd 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java @@ -605,6 +605,8 @@ public class RouterConsoleRunner implements RouterApp { } } changeState(RUNNING); + if (_mgr != null) + _mgr.register(this); } } else { System.err.println("ERROR: Router console did not start, not starting webapps"); diff --git a/apps/sam/java/src/net/i2p/sam/SAMBridge.java b/apps/sam/java/src/net/i2p/sam/SAMBridge.java index 9ac6c659cb..a528e7ae20 100644 --- a/apps/sam/java/src/net/i2p/sam/SAMBridge.java +++ b/apps/sam/java/src/net/i2p/sam/SAMBridge.java @@ -484,6 +484,8 @@ public class SAMBridge implements Runnable, ClientApp { public void run() { if (serverSocket == null) return; changeState(RUNNING); + if (_mgr != null) + _mgr.register(this); try { while (acceptConnections) { SocketChannel s = serverSocket.accept(); -- GitLab