I2PTunnelServer: Clean shutdown after session exception

This commit is contained in:
zzz
2012-09-04 13:46:10 +00:00
parent 0ba3aad666
commit bb66e16b69
2 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -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) {