forked from I2P_Developers/i2p.i2p
I2PTunnelServer: Clean shutdown after session exception
This commit is contained in:
@@ -375,7 +375,9 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
|
||||
} catch (I2PException ipe) {
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("Error accepting - KILLING THE TUNNEL SERVER", ipe);
|
||||
return;
|
||||
// TODO delay and loop if internal router is soft restarting?
|
||||
open = false;
|
||||
break;
|
||||
} catch (ConnectException ce) {
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("Error accepting", ce);
|
||||
|
||||
@@ -15,7 +15,7 @@ public abstract class I2PTunnelTask extends EventDispatcherImpl {
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
protected boolean open;
|
||||
protected volatile boolean open;
|
||||
private I2PTunnel tunnel;
|
||||
|
||||
//protected I2PTunnelTask(String name) {
|
||||
|
||||
Reference in New Issue
Block a user