I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit cecf2557 authored by zzz's avatar zzz
Browse files

i2ptunnel: Don't delay after ConnectException if stopped

(fixes zzzot stop delay)
parent a854ccee
No related branches found
No related tags found
No related merge requests found
...@@ -634,9 +634,11 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable { ...@@ -634,9 +634,11 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {} if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {}
break; break;
} catch (ConnectException ce) { } catch (ConnectException ce) {
if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {}
if (!open)
break;
if (_log.shouldLog(Log.ERROR)) if (_log.shouldLog(Log.ERROR))
_log.error("Error accepting", ce); _log.error("Error accepting", ce);
if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {}
try { try {
Thread.sleep(2*60*1000); Thread.sleep(2*60*1000);
} catch (InterruptedException ie) {} } catch (InterruptedException ie) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment