forked from I2P_Developers/i2p.i2p
* I2PTunnel: Fix standalone server tunnels
http://forum.i2p/viewtopic.php?t=5376
This commit is contained in:
@ -210,7 +210,9 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
|
||||
*
|
||||
*/
|
||||
public void startRunning() {
|
||||
Thread t = new I2PAppThread(this, "Server " + remoteHost + ':' + remotePort, true);
|
||||
// prevent JVM exit when running outside the router
|
||||
boolean isDaemon = getTunnel().getContext().isRouterContext();
|
||||
Thread t = new I2PAppThread(this, "Server " + remoteHost + ':' + remotePort, isDaemon);
|
||||
t.start();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user