forked from I2P_Developers/i2p.i2p
* AppManager: Register jetty, console, and SAM with manager
This commit is contained in:
@ -118,6 +118,7 @@ public class JettyStart implements ClientApp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
changeState(RUNNING);
|
changeState(RUNNING);
|
||||||
|
_mgr.register(JettyStart.this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -605,6 +605,8 @@ public class RouterConsoleRunner implements RouterApp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
changeState(RUNNING);
|
changeState(RUNNING);
|
||||||
|
if (_mgr != null)
|
||||||
|
_mgr.register(this);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
System.err.println("ERROR: Router console did not start, not starting webapps");
|
System.err.println("ERROR: Router console did not start, not starting webapps");
|
||||||
|
@ -484,6 +484,8 @@ public class SAMBridge implements Runnable, ClientApp {
|
|||||||
public void run() {
|
public void run() {
|
||||||
if (serverSocket == null) return;
|
if (serverSocket == null) return;
|
||||||
changeState(RUNNING);
|
changeState(RUNNING);
|
||||||
|
if (_mgr != null)
|
||||||
|
_mgr.register(this);
|
||||||
try {
|
try {
|
||||||
while (acceptConnections) {
|
while (acceptConnections) {
|
||||||
SocketChannel s = serverSocket.accept();
|
SocketChannel s = serverSocket.accept();
|
||||||
|
Reference in New Issue
Block a user